}
private Connection createConnection(ConnectionParams params) throws ServerDbException, SQLException {
try {
DefaultConnectionFactory f = new DefaultConnectionFactory(params, null, null);
Connection conn = f.newConnection();
if (params.getTransactionIsolationLevel() != TransactionIsolationLevel.DEFAULT) {
params.getTransactionIsolationLevel().apply(conn);
}
return conn;
} catch (ServerAccessException ex) {