code: public static Object getAttribute(String name, ClassLoader loader)
    {
      for (; loader != null; loader = loader.getParent()) {
        if (loader instanceof EnvironmentClassLoader) {
          Object value = ((EnvironmentClassLoader) loader).getAttribute(name);
  
          if (value != null)
            return value;
        }
      }
      
      /*
      if (_envSystemClassLoader != null)
        return _envSystemClassLoader.getAttribute(name);
        */
  
      return null;
    }
docs: Gets a local variable for the current environment.
  
  @param name the attribute name
  @param loader the context loader
  
  @return the attribute value