code: public Object getAttribute(String name) {
          Object value = getLocalAttribute(name);
          if (value == null && parent != null) {
              value = parent.getAttribute(name);
          }
          return value;
      }
docs: Get the context attribute. If attribute not exists in current context,
  then context search the sttribute in parent context
  
  @param name attribute name
  @return attribute value