if (baseDir == null) {
baseDir = SysProperties.getBaseDir();
}
dbName = server.checkKeyAndGetDatabaseName(dbName);
ConnectionInfo ci = new CBaseConnectionInfo(originalURL, dbName);
if (baseDir != null) {
ci.setBaseDir(baseDir);
}
if (server.getIfExists()) {
ci.setProperty("IFEXISTS", "TRUE");
}
ci.setUserName(userName);
ci.setUserPasswordHash(userPasswordHash);
ci.setFilePasswordHash(filePasswordHash);
ci.readProperties(originalProperties);
originalProperties.setProperty("user", userName);
if (userPasswordHash != null)
originalProperties.put("_userPasswordHash_", userPasswordHash);
if (filePasswordHash != null)