code: @Override
    public IShSessionData getAppSessionData(Class<? extends AppSession> clazz, String sessionId) {
      if (clazz.equals(ClientShSession.class)) {
        ShClientSessionDataReplicatedImpl data = new ShClientSessionDataReplicatedImpl(sessionId, this.mobicentsCluster);
        return data;
      }
      else if (clazz.equals(ServerShSession.class)) {
        ShServerSessionDataReplicatedImpl data = new ShServerSessionDataReplicatedImpl(sessionId, this.mobicentsCluster);
        return data;
      }
      throw new IllegalArgumentException();
    }
docs: /*
  (non-Javadoc)
  
  @see org.jdiameter.common.api.app.IAppSessionDataFactory#getAppSessionData (java.lang.Class, java.lang.String)