code: private Result doGetResourceById(Request request) throws ResourceNotFoundException {
          AtlasQuery atlasQuery;
          try {
              atlasQuery = queryFactory.createTaxonomyQuery(request);
          } catch (InvalidQueryException e) {
              throw new CatalogRuntimeException("Unable to compile internal Taxonomy query: " + e, e);
          }
  
          Collection<Map<String, Object>> resultSet = atlasQuery.execute();
          if (resultSet.isEmpty()) {
              throw new ResourceNotFoundException(String.format("Taxonomy '%s' not found.",
                      request.getProperty(resourceDefinition.getIdPropertyName())));
          }
          return new Result(resultSet);
      }
docs: must be called from within class monitor