server.addService( catalina );
try {
final NamingContext globalNamingContext = new NamingContext( new Hashtable<String, Object>(), "ctxt" );
server.setGlobalNamingContext( globalNamingContext );
globalNamingContext.bind( USER_DATABASE, createUserDatabase() );
} catch ( final NamingException e ) {
throw new RuntimeException( e );
}