public synchronized void stop() throws NoSuchObjectException {
  if (isRunning()) {
    isRunning=!UnicastRemoteObject.unexportObject(registry,true);
  }
}

public synchronized void stop ( ) throws NoSuchObjectException { if ( isRunning ( ) ) { isRunning = ! UnicastRemoteObject . unexportObject ( registry , true ) ; } }
stops this mbean : rmiregistry cannot accept anymore incoming calls
