mutters-ink-bot/src/main/java/com/rabidgremlin/mutters/bot/ink/SessionUtils.java
public static void saveInkStoryState(Session session, StoryState storyState)
  {
    if (storyState == null)
    {
    	throw new BadInkStoryState("storyState should not be null");
    }
	  
    try
    {
      session.setAttribute(SLOT_PREFIX + "0987654321STORYSTATE1234567890", storyState.toJson());
    }
    catch (Exception e)
    {
      throw new RuntimeException("Unexpected error. Failed to save story state", e);
    }
  }
/**
   * Stores the current Ink story state for the user into the session.
   * 
   * @param session The session.
   * @param storyState The story state.
   */
Stores the current Ink story state for the user into the session.

@param session The session.
@param storyState The story state.
Stores the current Ink story state for the user into the session . @param session The session . @param storyState The story state .
public static void saveInkStoryState(Session session, StoryState storyState)
  {
    if (storyState == null)
    {
    	throw new BadInkStoryState("storyState should not be null");
    }
    try
    {
      session.setAttribute(SLOT_PREFIX + "0987654321STORYSTATE1234567890", storyState.toJson());
    }
    catch (Exception e)
    {
      throw new RuntimeException("Unexpected error. Failed to save story state", e);
    }
  }
public static void saveInkStoryState ( Session session , StoryState storyState ) { if ( storyState == null ) { throw new BadInkStoryState ( "storyState should not be null" ) ; } try { session . setAttribute ( SLOT_PREFIX + "0987654321STORYSTATE1234567890" , storyState . toJson ( ) ) ; } catch ( Exception e ) { throw new RuntimeException ( "Unexpected error. Failed to save story state" , e ) ; } }
Stores the current Ink story state for the user into the session.
Stores the current Ink story state for the user into the session .