public String getServerLifeCycleListenerClass() {
    String className = "org.apache.geode.modules.session.catalina.";
    switch (getConnectionType()) {
      case PEER_TO_PEER:
        className += "PeerToPeer";
        break;
      case CLIENT_SERVER:
      case CACHING_CLIENT_SERVER:
        className += "ClientServer";
        break;
      default:
        throw new IllegalArgumentException(
            "Bad connection type. Must be either PEER_TO_PEER or CLIENT_SERVER");
    }

    className += "CacheLifecycleListener";
    return className;
  }
Get the server life cycle class that should be used

Generates the class based on whether the installation's connection type {@link
ContainerInstall#getConnectionType()} is client server or peer to peer.

@return the server life cycle class that should be used
geode-assembly/geode-assembly-test/src/main/java/org/apache/geode/session/tests/TomcatInstall.java