code: public void initServer() {
  
          if (m_initialized) {
              return;
          }
          try {
              m_registry = LocateRegistry.createRegistry(m_port);
              m_provider = new CmsRemoteShellProvider(m_port);
              I_CmsRemoteShellProvider providerStub = (I_CmsRemoteShellProvider)(UnicastRemoteObject.exportObject(
                  m_provider,
                  m_port));
              m_registry.bind(CmsRemoteShellConstants.PROVIDER, providerStub);
              m_initialized = true;
          } catch (Exception e) {
              LOG.error(e.getLocalizedMessage(), e);
          }
      }
docs: Initializes the RMI registry and exports the remote shell provider to it.<p>