code: private Subquery<CSNode> getMetaDataDoesntExistSubquery(final String metaDataTitle) {
          final CriteriaBuilder criteriaBuilder = getCriteriaBuilder();
          final Subquery<CSNode> subQuery = getCriteriaQuery().subquery(CSNode.class);
          final Root<CSNode> root = subQuery.from(CSNode.class);
          subQuery.select(root);
  
          // Create the Condition for the subquery
          final Predicate contentSpecIdMatch = criteriaBuilder.equal(getRootPath(), root.get("contentSpec"));
          final Predicate isMetaData = criteriaBuilder.equal(root.get("CSNodeType").as(Integer.class), CommonConstants.CS_NODE_META_DATA);
          final Predicate metaDataTitleMatch = criteriaBuilder.equal((root.get("CSNodeTitle").as(String.class)), metaDataTitle);
          subQuery.where(criteriaBuilder.and(contentSpecIdMatch, isMetaData, metaDataTitleMatch));
  
          return subQuery;
      }
docs: Create a Subquery to check if a Content Spec has a metadata field with the specified value.
  
  @param metaDataTitle The Title of the metadata to be checked.
  @return A subquery that can be used in an exists statement to see if a Content Spec has a metadata field with the specified value.