code: private String refactorString(String original)
    {
      StringBuilder sb = new StringBuilder();
      int argCount = 0;
      for (int i = 0; i < original.length(); i++)
      {
        if (original.charAt(i) == '{' && i < original.length() - 1 && original.charAt(i + 1) == '}')
        {
          sb.append(String.format("{%d}", argCount));
          argCount++;
          i++;
        }
        else
        {
          sb.append(original.charAt(i));
        }
      }
      return sb.toString();
    }
docs: Since we use SLF4J ways of formatting string we need to refactor message string
  if we have arguments.
  For example, in sl4j, this string can be formatted with 2 arguments
  <p>
  ex.1: Error happened in {} on {}
  <p>
  And if two arguments are provided, error message can be formatted.
  <p>
  However, in java.util.logging, to achieve formatted error message,
  Same string should be converted to
  <p>
  ex.2: Error happened in {0} on {1}
  <p>
  Which represented first arguments and second arguments will be replaced in the
  corresponding places.
  <p>
  This method will convert string in ex.1 to ex.2