/**
* Creates a new {@link ModuleDefinitionSource} from the supplied {@link Resource}, which contains the module definitions
*/
protected ModuleDefinitionSource newModuleDefinitionSource(Resource resource, ModuleManagementFacade factory) {
InternalWebXmlModuleDefinitionSource moduleDefinitionSource = new InternalWebXmlModuleDefinitionSource(
factory.getModuleLocationResolver(),
factory.getTypeReaderRegistry());
moduleDefinitionSource.setResource(resource);
return moduleDefinitionSource;
}