code: @Deprecated
      public static Object getAttribute(HttpSession session, String key) {
          return session.getAttribute(key);
      }
docs: Returns an object in session.
  @param session session.
  @param key Key under which object is saved.
  @return Object.
  @deprecated Use {@link HttpSession#getAttribute(String)} instead.