public static String makeRelatedSessionID(String encryptedID,SessionID prototype) throws SessionException {
  prototype.parseSessionString();
  return makeSessionID(encryptedID,prototype.getExtension(),prototype.tail);
}

public static String makeRelatedSessionID ( String encryptedID , SessionID prototype ) throws SessionException { prototype . parseSessionString ( ) ; return makeSessionID ( encryptedID , prototype . getExtension ( ) , prototype . tail ) ; }
generates encoded session id string which uses the same extensions and tail part as prototype session id , but a different encrypted id . this method is used to generate session handle and restricted token id for a given master session id . related session ids must share extensions and tail information in order for session failover to work properly
