code: public void session(String name, Object value){
          RequestContext.getHttpRequest().getSession().getAttribute(name);
      }
docs: Sets an object on a current session.
  
  @param name name of object
  @param value value of object