code: String format(final String message, final Object[] arguments) {
  		StringBuilder builder = new StringBuilder(INITIAL_STRING_BUFFER_CAPACITY);
  
  		int argumentIndex = 0;
  		int start = 0;
  		int openingCurlyBrackets = 0;
  
  		for (int index = 0; index < message.length(); ++index) {
  			char character = message.charAt(index);
  			if (character == '{') {
  				if (openingCurlyBrackets++ == 0 && start < index) {
  					builder.append(message, start, index);
  					start = index;
  				}
  			} else if (character == '}' && openingCurlyBrackets > 0) {
  				if (--openingCurlyBrackets == 0) {
  					if (argumentIndex < arguments.length) {
  						Object argument = arguments[argumentIndex++];
  						if (argument instanceof Supplier) {
  							argument = ((Supplier<?>) argument).get();
  						}
  
  						if (index == start + 1) {
  							builder.append(argument);
  						} else {
  							builder.append(format(message.substring(start + 1, index), argument));
  						}
  					} else {
  						builder.append(message, start, index + 1);
  					}
  
  					start = index + 1;
  				}
  			}
  		}
  
  		if (start < message.length()) {
  			builder.append(message, start, message.length());
  		}
  
  		return builder.toString();
  	}
docs: Formats a text message. All placeholders '{}' will be replaced with the given arguments.
  
  @param message
  Text message with placeholders
  @param arguments
  Replacements for placeholders
  @return Formatted text message