code: private void updateSession(final LinkedHashMap<String, XMLObject> messages) {
          context.getSessionStore().set(context, SAML_STORAGE_KEY, messages);
      }
docs: Updates session with the internalMessages key. Some application servers require session value to be updated
  in order to replicate the session across nodes or persist it correctly.