String strPoolFile = configParameters.getPoolFilePath();
boolean isRelative = !strPoolFile.startsWith("/") && !strPoolFile.substring(1, 1).equals(":");
if (isJndiModeOn(strPoolFile)) {
return new JNDIConnectionProvider(strPoolFile, isRelative);
} else {
return new ConnectionProviderImpl(strPoolFile, isRelative, configParameters.strContext);
}
} catch (Exception ex) {
throw new PoolNotFoundException(ex.getMessage());
}