Path () { Path sessionDirectory = mySessionDirectory; if (sessionDirectory == null) { synchronized (mySessionDirectoryLock) { sessionDirectory = mySessionDirectory; if (sessionDirectory == null) { try { mySessionDirectory = sessionDirectory = FileUtil .createTempDirectory(new File(PathManager.getTempPath()), Long.toString(System.currentTimeMillis()), "", true).toPath(); } catch (IOException ex) { throw new RuntimeException("Can not create temp directory", ex); } } } } return sessionDirectory; }