code: public static boolean matches(final Pattern pattern, final String value, final boolean completeMatch) {
          val matcher = pattern.matcher(value);
          LOGGER.debug("Matching value [{}] against pattern [{}]", value, pattern.pattern());
          if (completeMatch) {
              return matcher.matches();
          }
          return matcher.find();
      }
docs: Matches boolean.
  
  @param pattern       the pattern
  @param value         the value
  @param completeMatch the complete match
  @return the boolean