docs: static <T> Entry<T> applyQuery(Entry<T> entry, Query<T> query) {
          requireNonNull(query, "query");
          entry.content(); // Ensure that content is not null.
          final EntryType entryType = entry.type();
  
          final QueryType queryType = query.type();
          if (!queryType.supportedEntryTypes().contains(entryType)) {
              throw new QueryExecutionException("Unsupported entry type: " + entryType +
                                                " (query: " + query + ')');
          }
  
          if (queryType == IDENTITY) {
              return entry;
          } else if (queryType == JSON_PATH) {
              return Entry.of(entry.revision(), query.path(), entryType, query.apply(entry.content()));
          } else {
              throw new QueryExecutionException("Unsupported entry type: " + entryType +
                                                " (query: " + query + ')');
          }
      }