String namespace = (String) NAMESPACE.lookUp(params);
// get connection pool
PostgisConnectionFactory connFact = new PostgisConnectionFactory(dbHost, dbPort.toString(), database);
connFact.setLogin(dbUser, dbPasswd);
ConnectionPool pool = null;
try {
pool = connFact.getConnectionPool();
} catch (SQLException e) {
throw new DataSourceException("Could not create connection", e);
}