connectionManagerFactory.setTransactionManager(transactionManager);
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
if (classLoader == null) classLoader = getClass().getClassLoader();
if (classLoader == null) classLoader = ClassLoader.getSystemClassLoader();
connectionManagerFactory.setClassLoader(classLoader);
connectionManager = connectionManagerFactory.create();
}
if (connectionManager == null) {
throw new RuntimeException("Invalid connection manager specified for connector identity = " + serviceInfo.id);
}