if (_instance == null) {
_parent = parent;
_database = new DatabaseService(config);
_database.start();
DatabaseConfiguration dbconfig =
config.getDatabaseConfiguration();
// determine the database type and instantiate the appropriate
// database adapter
if (dbconfig.getRdbmsDatabaseConfiguration() != null) {
_database.getAdapter();
_instance = this;
}
} else {
throw new OfflineConnectionException("Already connected");