dispatcher.getDefaultContextObjects().put(Dispatcher.class, dispatcher);
Map contextDataMap = SeamResteasyProviderFactory.getContextDataMap();
contextDataMap.putAll(dispatcher.getDefaultContextObjects());
// Seam can scan the classes for us, we just have to list them in META-INF/seam-deployment.properties
DeploymentStrategy deployment = (DeploymentStrategy) Component.getInstance("deploymentStrategy");
AnnotationDeploymentHandler handler =
(AnnotationDeploymentHandler) deployment.getDeploymentHandlers().get(AnnotationDeploymentHandler.NAME);
Collection<Class<?>> providers = findProviders(handler);
Collection<Class<?>> resources = findResources(handler);
Collection<Component> seamComponents = findSeamComponents();