docs: public static String formatMessage(String result, Object... args) {
  
          // key was found in the bundle - create and apply the formatter
          for (int i = 0; i < args.length; i++) {
              if (args[i] instanceof Date) {
                  Date date = (Date)args[i];
                  result = result.replace(getRegEx(i), CmsDateTimeUtil.getDateTime(date, CmsDateTimeUtil.Format.MEDIUM));
                  result = result.replace(
                      getRegEx(i, "time"),
                      CmsDateTimeUtil.getTime(date, CmsDateTimeUtil.Format.MEDIUM));
                  result = result.replace(
                      getRegEx(i, "time", "short"),
                      CmsDateTimeUtil.getTime(date, CmsDateTimeUtil.Format.SHORT));
                  result = result.replace(
                      getRegEx(i, "time", "medium"),
                      CmsDateTimeUtil.getTime(date, CmsDateTimeUtil.Format.MEDIUM));
                  result = result.replace(
                      getRegEx(i, "time", "long"),
                      CmsDateTimeUtil.getTime(date, CmsDateTimeUtil.Format.LONG));
                  result = result.replace(
                      getRegEx(i, "time", "full"),
                      CmsDateTimeUtil.getTime(date, CmsDateTimeUtil.Format.FULL));
                  result = result.replace(
                      getRegEx(i, "date"),
                      CmsDateTimeUtil.getDate(date, CmsDateTimeUtil.Format.MEDIUM));
                  result = result.replace(
                      getRegEx(i, "date", "short"),
                      CmsDateTimeUtil.getDate(date, CmsDateTimeUtil.Format.SHORT));
                  result = result.replace(
                      getRegEx(i, "date", "medium"),
                      CmsDateTimeUtil.getDate(date, CmsDateTimeUtil.Format.MEDIUM));
                  result = result.replace(
                      getRegEx(i, "date", "long"),
                      CmsDateTimeUtil.getDate(date, CmsDateTimeUtil.Format.LONG));
                  result = result.replace(
                      getRegEx(i, "date", "full"),
                      CmsDateTimeUtil.getDate(date, CmsDateTimeUtil.Format.FULL));
              } else {
                  result = result.replace(getRegEx(i), String.valueOf(args[i]));
              }
          }
          return result;
      }