}
private void importFactory(XMLStreamReader reader, LoaderContext loaderContext) throws ConfigurationLoadException {
String factoryName = reader.getAttributeValue(null, "factory");
if (factoryName != null) {
ResourceLoader resourceLoader = loaderContext.getResourceLoader();
ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
try {
// set TCCL as SDO needs it
Thread.currentThread().setContextClassLoader(resourceLoader.getClassLoader());
Class<?> factoryClass = resourceLoader.loadClass(factoryName);
SDOUtil.registerStaticTypes(factoryClass);
} catch (ClassNotFoundException e) {
throw new ConfigurationLoadException(e.getMessage(), e);
} finally {
Thread.currentThread().setContextClassLoader(oldCL);