public String[] list() throws RemoteException {
  if (!isRunning()) {
    throw new IllegalStateException("RMIRegistryService is not running");
  }
  return registry.list();
}

public String [ ] list ( ) throws RemoteException { if ( ! isRunning ( ) ) { throw new IllegalStateException ( "RMIRegistryService is not running" ) ; } return registry . list ( ) ; }
returns an array of the names bound in the rmiregistry
