public static SessionID generateStatelessSessionID(SessionServerConfig serverConfig,String domain,String jwt) throws SessionException {
  Reject.ifNull(jwt);
  String siteID=serverConfig.getPrimaryServerID();
  String primaryID=getPrimaryId(serverConfig);
  LegacySessionIDExtensions ext=new LegacySessionIDExtensions(primaryID,siteID,null);
  final String sessionId=makeSessionID("",ext,jwt);
  return new SessionID(sessionId,serverConfig.getLocalServerID(),domain);
}

public static SessionID generateStatelessSessionID ( SessionServerConfig serverConfig , String domain , String jwt ) throws SessionException { Reject . ifNull ( jwt ) ; String siteID = serverConfig . getPrimaryServerID ( ) ; String primaryID = getPrimaryId ( serverConfig ) ; LegacySessionIDExtensions ext = new LegacySessionIDExtensions ( primaryID , siteID , null ) ; final String sessionId = makeSessionID ( "" , ext , jwt ) ; return new SessionID ( sessionId , serverConfig . getLocalServerID ( ) , domain ) ; }
generates a new stateless session id .
