protected void stopRMI(){
  if (rmiRegistry != null) {
    try {
      UnicastRemoteObject.unexportObject(rmiRegistry,true);
    }
 catch (    NoSuchObjectException e) {
      logger.warn("Unexpected error while shutting down RMI registry",e);
    }
    rmiRegistry=null;
  }
}

protected void stopRMI ( ) { if ( rmiRegistry != null ) { try { UnicastRemoteObject . unexportObject ( rmiRegistry , true ) ; } catch ( NoSuchObjectException e ) { logger . warn ( "Unexpected error while shutting down RMI registry" , e ) ; } rmiRegistry = null ; } }
deallocates the rmi registry .
