code: public void addObjectToSession(String name, Object value) {
          if (session == null) {
              session = new HashMap<>();
          }
          if (logger.isDebugEnabled()) {
              logger.debug("Add object [" + name + "] to session with value [" + value + "]");
          }
          session.put(name, value);
      }
docs: Add a object into the session.
  
  @param name  the object name.
  @param value the objecet value.