if (logger.isDebugEnabled()) {
logger.debug("Found module definition reource URL from bundle context: " + moduleDefinitionResourceURL);
}
InternalXmlModuleDefinitionSource source = new InternalXmlModuleDefinitionSource(facade.getModuleLocationResolver(), facade.getTypeReaderRegistry());
source.setResource(new UrlResource(moduleDefinitionResourceURL));
return source;
} else {
if (logger.isDebugEnabled()) {
logger.debug("No module definition reource URL from bundle context");