protected void createRegistry(int port){
  if (rmiRegistry == null) {
    try {
      if (logger.isDebugEnabled()) {
        logger.debug("Starting RMI registry on registryPort: " + port);
      }
      rmiRegistry=LocateRegistry.createRegistry(port);
    }
 catch (    Throwable e) {
      throw new ServerRuntimeException("Unable to start rmi registry on registryPort: " + port,e);
    }
  }
}

protected void createRegistry ( int port ) { if ( rmiRegistry == null ) { try { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Starting RMI registry on registryPort: " + port ) ; } rmiRegistry = LocateRegistry . createRegistry ( port ) ; } catch ( Throwable e ) { throw new ServerRuntimeException ( "Unable to start rmi registry on registryPort: " + port , e ) ; } } }
starts the rmi registry .
