code: @Override
    public IS6aSessionData getAppSessionData(Class<? extends AppSession> clazz, String sessionId) {
      if (clazz.equals(ClientS6aSession.class)) {
        ClientS6aSessionDataLocalImpl data = new ClientS6aSessionDataLocalImpl();
        data.setSessionId(sessionId);
        return data;
      }
      else if (clazz.equals(ServerS6aSession.class)) {
        ServerS6aSessionDataLocalImpl data = new ServerS6aSessionDataLocalImpl();
        data.setSessionId(sessionId);
        return data;
      }
      else {
        throw new IllegalArgumentException("Invalid Session Class: " + clazz.toString());
      }
    }
docs: /*
  (non-Javadoc)
  @see org.jdiameter.common.api.app.IAppSessionDataFactory#getAppSessionData(java.lang.Class, java.lang.String)