return newModuleDefinitionSource(resource, factory);
}
protected ModuleDefinitionSource newModuleDefinitionSource(Resource resource, ModuleManagementFacade factory) {
InternalWebXmlModuleDefinitionSource moduleDefinitionSource = new InternalWebXmlModuleDefinitionSource(
factory.getModuleLocationResolver(),
factory.getTypeReaderRegistry());
moduleDefinitionSource.setResource(resource);
return moduleDefinitionSource;
}