code: protected void saveFields(Collection<Field> fields, ActionBean actionBean, HttpSession session) throws IllegalAccessException {
          for (Field field : fields) {
              if (!field.isAccessible()) {
                  field.setAccessible(true);
              }
              setAttribute(session, getFieldKey(field, actionBean.getClass()), field.get(actionBean), ((Session)field.getAnnotation(Session.class)).serializable(), ((Session)field.getAnnotation(Session.class)).maxTime());
          }
      }
docs: Saves all fields in session.
  @param fields Fields to save in session.
  @param actionBean ActionBean.
  @param session HttpSession.
  @throws IllegalAccessException Cannot get access to some fields.