code: public Object getFileMetadata(String file, String key) {
      Map<String, Object> fileKeys = fileLevel.get(file);
      if (fileKeys == null) {
        return null;
      }
  
      return fileKeys.get(key);
    }
docs: Get an arbitrary file-level metadata key