code: private String formatMessage(String message, String language, Object... args) {
          if (args != null && args.length > 0) {
              // only format a message if we have arguments
              Locale locale = languages.getLocaleOrDefault(language);
              MessageFormat messageFormat = new MessageFormat(message, locale);
              return messageFormat.format(args);
          }
  
          return message;
      }
docs: Optionally formats a message for the requested language with
  {@link java.text.MessageFormat}.
  
  @param message
  @param language
  @param args
  @return the message