code: public Object getAttribute(String name, Object defaultValue) {
          Object value = scope.getAttribute(name);
          if (value == null) {
              value = defaultValue;
          }
          return value;
      }
docs: {@inheritDoc}