try {
if (ds == null) {
OracleNGDataStoreFactory dsf = new OracleNGDataStoreFactory();
checkPort(params);
assert params.get("port") instanceof String; //$NON-NLS-1$
if (dsf.canProcess(params)) {
try {
ds = dsf.createDataStore(params);
} catch (IOException e) {
msg = e;
throw e;