public static Job saveJob(String title) { int id = getNewJobId(); String jobDirName = JOBS_DIR_NAME + "/" + id; File jobDir = new File(jobDirName); jobDir.mkdirs(); Job job = new Job(id, title); job.saveProperties(); Skeleton.copyFiles(jobDirName); return job; }