public synchronized void copyCreateSymlinkDirectory(File executionDir) throws IOException { if (installedDir == null || !installedDir.exists()) { throw new IOException("Installed dir doesn't exist"); } else if (executionDir == null || !executionDir.exists()) { throw new IOException("Execution dir doesn't exist"); } FileIOUtils.createDeepSymlink(installedDir, executionDir); }