if (CONNECTION_JNDI.equals(connectionType)) {
factory = new PostgisNGJNDIDataStoreFactory();
fillInJndiParams(params, jndiParamPanel);
}
else {
factory = new PostgisNGDataStoreFactory();
// basic params
params.put(HOST.key, basicParamPanel.host);
params.put(PostgisNGDataStoreFactory.PORT.key, basicParamPanel.port);
params.put(USER.key, basicParamPanel.username);