PojoComponentType<JavaMappedService, JavaMappedReference, JavaMappedProperty<?>> componentType =
definition.getImplementation().getComponentType();
PojoConfiguration configuration = new PojoConfiguration();
configuration.setParent(parent);
Scope scope = componentType.getImplementationScope();
if (Scope.MODULE == scope) {
configuration.setScopeContainer(deployment.getModuleScope());
} else {
configuration.setScopeContainer(scopeRegistry.getScopeContainer(scope));
}