code: public static String buildLikeValue(String value, WildcardPosition wildcardPosition) {
      String escapedValue = escapePercentAndUnderscore(value);
      String wildcard = "%";
      switch (wildcardPosition) {
        case BEFORE:
          escapedValue = wildcard + escapedValue;
          break;
        case AFTER:
          escapedValue += wildcard;
          break;
        case BEFORE_AND_AFTER:
          escapedValue = wildcard + escapedValue + wildcard;
          break;
        default:
          throw new UnsupportedOperationException("Unhandled WildcardPosition: " + wildcardPosition);
      }
  
      return escapedValue;
    }
docs: Returns an escaped value in parameter, with the desired wildcards. Suitable to be used in a like sql query<br />
  Escapes the "/", "%" and "_" characters.<br/>
  
  You <strong>must</strong> add "ESCAPE '/'" after your like query. It defines '/' as the escape character.