code: @Override
    public IRfSessionData getAppSessionData(Class<? extends AppSession> clazz, String sessionId) {
      if (clazz.equals(ClientRfSession.class)) {
        ClientRfSessionDataLocalImpl data = new ClientRfSessionDataLocalImpl();
        data.setSessionId(sessionId);
        return data;
      }
      else if (clazz.equals(ServerRfSession.class)) {
        ServerRfSessionDataLocalImpl data = new ServerRfSessionDataLocalImpl();
        data.setSessionId(sessionId);
        return data;
      }
      throw new IllegalArgumentException(clazz.toString());
    }
docs: /* (non-Javadoc)
  @see org.jdiameter.common.api.app.IAppSessionDataFactory#getAppSessionData(java.lang.Class, java.lang.String)