public Object getAttribute()

in src/main/java/org/apache/sling/scripting/core/impl/bundled/BundledScriptContext.java [91:105]


    public Object getAttribute(String name) {
        if (name == null) {
            throw new IllegalArgumentException("Name is null");
        }
        for (final int scope : SCOPES) {
            final Bindings bindings = getBindings(scope);
            if (bindings != null) {
                final Object o = bindings.get(name);
                if (o != null) {
                    return o;
                }
            }
        }
        return null;
    }