code: public Object put(String name, Serializable value){
  //        Object val = session/*request.getSession(true)*/.getAttribute(name);
  //        request.getSession(false).setAttribute(name, value);
          Object val = session.getAttribute(name);
          session.setAttribute(name, value);
          return val;
      }
docs: Add object to a session.
  @param name name of object
  @param value object reference.
  @return the previous bound value for the name