if (configurationFactory == null) {
Resource resource = findResource(resourceTypeName);
if (resource != null) {
JAXBElement<? extends ConfigurationGenerator> element = resource.getPluginConfigurationGenerator();
if (element != null) {
ConfigurationGenerator generator = element.getValue();
configurationFactory = createConfigurationFactory(generator);
pluginConfigurationFactories.put(resourceTypeName, configurationFactory);
}
}
}