public synchronized Remote lookup(String name) throws RemoteException, NotBoundException
  {
    Remote obj = objects.get(name);
    if (obj == null)
      throw new NotBoundException();
    else
      return obj;
  }