databaseHome = (DatabaseHome) javax.rmi.PortableRemoteObject.narrow(obj, DatabaseHome.class);
} catch (final Exception e) {
throw new IllegalStateException("Cannot find " + databaseHomeJndiName + ": " + e.getClass().getName() + " " + e.getMessage());
}
try {
database = databaseHome.create();
} catch (final Exception e) {
throw new IllegalStateException("Cannot start database: " + e.getClass().getName() + " " + e.getMessage());
}
}