Use TEMP_FOLDER constant, instead of calling getTempFolder() directly.