question: protected String makeSuffix ( String path , String contentType ) { String suffix = contentType != null ? WWIO . makeSuffixForMimeType ( contentType ) : null ; String existingSuffix = WWIO . getSuffix ( path ) ; if ( existingSuffix != null && existingSuffix . equalsIgnoreCase ( "jpeg" ) ) existingSuffix = "jpg" ; if ( suffix != null && ( existingSuffix == null || ! existingSuffix . equalsIgnoreCase ( suffix . substring ( 1 ) ) ) ) return suffix ; else return null ; }
target:  Determines an appropriate suffix for a cached file. If the specified path already has a suffix that matches the specified content type, then this method returns null. Otherwise the method determines and returns a suffix for the specified content type.