docs: public synchronized Object get(String name, Scriptable start) {
          if (isEmpty(name)) {
              if (indexedProps.containsKey(name)) {                
                  return indexedProps.get(name);
              } else {
                  return NOT_FOUND;
              }
          } else {
              synchronized (context) {
                  int scope = context.getAttributesScope(name);
                  if (scope != -1) {
                      Object value = context.getAttribute(name, scope);
                      return Context.javaToJS(value, this);
                  } else {
                      return NOT_FOUND;
                  }
              }
          }
      }