Log.logException(Log.ERROR, MODULE, e2);
Log.logException(Log.LEVEL_ERROR, MODULE, e2);
	public static File rotate( String filename, int angle, boolean flip, boolean resetExifOrientation) {		File r = null;		if ( ! GalleryFileFilter.canManipulateJpeg(filename) ) {			return new File(filename);		}		if (useJpegtran) {			try {				if (flip) {					r = jpegtranExec(filename, " -flip horizontal");					filename = r.getPath();				}				if (angle != 0) {					r = jpegtranExec(filename, " -rotate " + angle * 90);				}				/*if (resetExifOrientation) {					resetExifOrientation(filename);				}*/			} catch (IOException e1) {				Log.logException(Log.ERROR, MODULE, e1);			} catch (InterruptedException e2) {				Log.logException(Log.ERROR, MODULE, e2);			}		}		if ( ! useJpegtran && r == null ) {			throw new UnsupportedOperationException("jpegtran must be installed for this operation");		}		return r;	}