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;
}

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 ; }
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 .
