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);
    }
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 ) ; }
Add suffix to file name