code: public static String format(String templateMessage, Object... args) throws TechnicalException {
          if (null != templateMessage && countWildcardsOccurrences(templateMessage, "%s") == args.length) {
              try {
                  return String.format(templateMessage, args);
              } catch (final Exception e) {
                  throw new TechnicalException(getMessage(FAIL_MESSAGE_FORMAT_STRING), e);
              }
          } else {
              throw new TechnicalException(getMessage(FAIL_MESSAGE_FORMAT_STRING));
          }
      }
docs: Format given message with provided arguments
  
  @param templateMessage
  Message to display before formatting
  @param args
  Arguments
  @return a String containing the message well formatted.
  @throws TechnicalException
  if data input is wrong.