server = new TestServer(false);
server = new LocalTestServer();
   public static synchronized void create() throws Exception   {      if (server != null)      {         return;      }      if (isLocal())      {         server = new TestServer(false);         return;      }      server = acquireRemote(RMI_SERVER_LOOKUP_RETRIES);      if (server != null)      {         // RMI server started         return;      }      // the remote RMI server is not started      // I could attempt to start the remote server VM from the test itself (see commented out code)      // but when running such a test from a forking ant, ant blocks forever waiting for *this* VM      // to exit. That's why I require the remote server to be started in advance.      throw new IllegalStateException("The RMI server doesn't seem to be started. " +                                      "Start it and re-run the test.");//      // start the service container and the JMS server in a different VM//      vmStarter = new Thread(new VMStarter(), "External VM Starter Thread");//      vmStarter.setDaemon(true);//      vmStarter.start();////      server = acquireRemote(RMI_SERVER_LOOKUP_RETRIES);////      if (server == null)//      {//         throw new IllegalStateException("Cannot find remote server " +//                                         TestServer.RMI_SERVER_NAME + " in registry");//      }   }