code: private static String addSuffix(final String href, final String suffix) {
          final int idx = href.lastIndexOf(".");
          return idx != -1
                  ? (href.substring(0, idx) + suffix + href.substring(idx))
                  : (href + suffix);
      }
docs: Add suffix to file name