} catch (final Exception e){
throw (IllegalStateException) new IllegalStateException("Cannot create initial context: "+e.getClass().getName()+" "+e.getMessage()).initCause(e);
}
Object obj =null;
DatabaseHome databaseHome =null;
try {
/* Create database */
obj = initialContext.lookup("client/tools/DatabaseHome");
databaseHome = (DatabaseHome)javax.rmi.PortableRemoteObject.narrow( obj, DatabaseHome.class);
} catch (final Exception e){
throw new IllegalStateException("Cannot find 'client/tools/DatabaseHome': "+e.getClass().getName()+" "+e.getMessage());
}
try {
database = databaseHome.create();
} catch (final Exception e){
throw new IllegalStateException("Cannot start database: "+e.getClass().getName()+" "+e.getMessage());
}
}