private static void addPredictionFile(String str) throws Exception { File f = new File(str); if (!f.exists()) throw new Exception("File " + str + " not found"); settings.addPredictionFile(f); predictionFileSet = true; }