AbstractProperties properties = getProperties();
boolean useProxies = properties.getBoolean(CPAProperties.USE_JDBC_PROXIES, true);
AbstractConnectionFactory factory = null;
JdoConf jdoConf = getJdoConf(DBNAME, MAPPING);
if (jdoConf.getDatabase(0).getDatabaseChoice().getDriver() != null) {
factory = new DriverConnectionFactory(jdoConf, 0, null);
} else if (jdoConf.getDatabase(0).getDatabaseChoice().getDataSource() != null) {
factory = new DataSourceConnectionFactory(jdoConf, 0, new Mapping());
} else if (jdoConf.getDatabase(0).getDatabaseChoice().getDriver() != null) {
factory = new JNDIConnectionFactory(jdoConf, 0, null);
}
factory.initializeFactory();