code: @SuppressWarnings("null")
    public static @NotNull String jcrQueryContainsExpr(@NotNull String value) {
      if (value == null || value.isEmpty()) {
        throw new IllegalArgumentException("Invalid query string value: " + value);
      }
      // Escape special characters not allowed in jcr:contains expression
      return jcrQueryLiteral(Text.escapeIllegalXpathSearchChars(value));
    }
docs: Convert a string to a JCR search expression literal, suitable for use in jcr:contains() (inside XPath)
  or contains (JCR-SQL2). The characters - and " have special meaning, and may be escaped with a backslash
  to obtain their literal value.
  See JSR-283 specification v2.0, Section 4.6.6.19.
  @param value Any string.
  @return A valid string literal suitable for use in JCR contains clauses, including enclosing quotes.