protected IAcceptor getAcceptor() {
    if (acceptor == null) {
      if (useJVMTransport()) {
        acceptor = JVMUtil.getAcceptor(container, "default"); // $NON-NLS-1$
      } else {
        if (useSSLTransport()) {
          acceptor = SSLUtil.getAcceptor(container, null);
        } else {
          acceptor = TCPUtil.getAcceptor(container, null);
        }
      }
    }

    return acceptor;
  }
  protected IManagedContainer createContainer() {
    IManagedContainer container = ContainerUtil.createContainer();
    Net4jUtil.prepareContainer(container);
    if (useJVMTransport()) {
      JVMUtil.prepareContainer(container);
    } else {
      if (useSSLTransport()) {
        SSLUtil.prepareContainer(container);
      } else {
        TCPUtil.prepareContainer(container);
      }
    }

    return container;
  }
  protected IConnector getConnector() {
    if (connector == null) {
      if (useJVMTransport()) {
        connector = JVMUtil.getConnector(container, "default"); // $NON-NLS-1$
      } else {
        if (useSSLTransport()) {
          // cannot use same container with the acceptor.
          connector = SSLUtil.getConnector(separateContainer, HOST);
        } else {
          connector = TCPUtil.getConnector(container, HOST);
        }
      }
    }

    return connector;
  }
 /** Subclasses may override. */
 public IConnector createConnector(IManagedContainer container) {
   return JVMUtil.getConnector(container, JVM_ACCEPTOR_PREFIX + repositoryName);
 }