final String databaseType = serverProperties.get(ServerProperties.PROP_DATABASE_TYPE);
if (ServerInstallUtil.isEmpty(databaseType)) {
throw new Exception("Please indicate the type of database to connect to");
}
SupportedDatabaseType supportedDbType = ServerInstallUtil.getSupportedDatabaseType(databaseType);
if (supportedDbType == null) {
throw new Exception("Invalid database type: " + databaseType);
}
// parse the database connection URL to extract the servername/port/dbname; this is needed for the XA datasource