public void setClientName(final String name) {
   this.clientName = name;
   rebootClient = server.registerRebootClient(name, server.core, this);
   rebootClient.queuePendingMessagesOnConnectionRestartAsync(
       outputHandler, null, server.core.clientContext);
   // Create foreverClient lazily. Everything that needs it (especially creating ClientGet's etc)
   // runs on a database job.
   if (logMINOR) Logger.minor(this, "Set client name: " + name);
 }
 protected FCPClient createForeverClient(String name, ObjectContainer container) {
   synchronized (FCPConnectionHandler.this) {
     if (foreverClient != null) return foreverClient;
   }
   FCPClient client =
       server.registerForeverClient(name, server.core, FCPConnectionHandler.this, container);
   synchronized (FCPConnectionHandler.this) {
     foreverClient = client;
     FCPConnectionHandler.this.notifyAll();
   }
   client.queuePendingMessagesOnConnectionRestartAsync(
       outputHandler, container, server.core.clientContext);
   return foreverClient;
 }