code: public static String escapeMessageParameter(final String messageParameter) {
      if (messageParameter == null) {
        return null;
      }
      return ESCAPE_MESSAGE_PARAMETER_PATTERN.replace(messageParameter,
          String.valueOf(ESCAPE_CHARACTER) + "$1"); // NOPMD
    }
docs: escape message parameter.
  
  @param messageParameter parameter to escape
  @return escaped string