public Object getAttribute(String name) {
    HttpSession session = getHttpSession();
    if (session != null) {
      return session.getAttribute(name);
    }
    return null;
  }
Get an attribute value from the current session.

@param name  the attribute name

@return the attribute value
ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariSessionManager.java