class FileHelper {

    public static File getTempFile() {
        for (;;) {
            String fileName = UUID.randomUUID().toString();
            File tempFile = new File(getTempDir(), fileName);
            if (tempFile.exists()) { // should never happen, as UUIDs are unique, but never say never
                continue;
            }
            return tempFile;
        }
    }

    private  FileHelper();

}