docs: public void read(final URI filename, final Document doc) {
          currentFile = filename;
          rootScope = null;
          // TODO: use KeyScope implementation that retains order
          KeyScope keyScope = readScopes(doc);
          keyScope = cascadeChildKeys(keyScope);
          // TODO: determine effective key definitions here
          keyScope = inheritParentKeys(keyScope);
          rootScope = resolveIntermediate(keyScope);
      }