code: public ISLhSessionData getAppSessionData(Class<? extends AppSession> clazz, String sessionId) {
      if (clazz.equals(ClientSLhSession.class)) {
        ClientSLhSessionDataReplicatedImpl data = new ClientSLhSessionDataReplicatedImpl(sessionId, this.mobicentsCluster,
            this.replicatedSessionDataSource.getContainer());
        return data;
      } else if (clazz.equals(ServerSLhSession.class)) {
        ServerSLhSessionDataReplicatedImpl data = new ServerSLhSessionDataReplicatedImpl(sessionId, this.mobicentsCluster,
            this.replicatedSessionDataSource.getContainer());
        return data;
      }
      throw new IllegalArgumentException();
    }
docs: /*
  (non-Javadoc)
  
  @see org.jdiameter.common.api.app.IAppSessionDataFactory#getAppSessionData(java.lang.Class, java.lang.String)