Path () { String agentDirectory = System.getProperty(MEMORY_AGENT_EXTRACT_DIRECTORY); if (agentDirectory != null) { File file = new File(agentDirectory); if (file.exists() || file.mkdirs()) { return file.toPath(); } LOG.info("Directory specified in property \"" + MEMORY_AGENT_EXTRACT_DIRECTORY + "\" not found. Default tmp directory will be used"); } return Paths.get(FileUtil.getTempDirectory()); }