public static void createSubBatchfile(String path, String batchfile, int contentInPercent, int session) {
		int numberExamples= -1;
		try {
			numberExamples = TestSupervisor.count(path + batchfile);
		} catch (IOException e2) {
			// TODO Auto-generated catch block
			e2.printStackTrace();
		}
		ArrayList<Integer> numbers = new ArrayList<Integer>();
		for (int i = 0; i < numberExamples; i++) {
			numbers.add(i);
		}

	     Collections.shuffle(numbers);

		
		ArrayList<Integer> chosenNumbers = new ArrayList<Integer>();
		
		int numberChosenExamples = (int) Math.round((numberExamples*contentInPercent)/100.0);
		System.out.println(numberChosenExamples+" "+numberExamples);
		for (int i = 0; i < numberChosenExamples; i++) {
			chosenNumbers.add(numbers.get(i));
		}

	     Collections.sort(chosenNumbers);

		

		FileInputStream fstream = null;
		try {
			fstream = new FileInputStream(path+batchfile);
		} catch (FileNotFoundException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
		DataInputStream in = new DataInputStream(fstream);
		BufferedReader br = new BufferedReader(new InputStreamReader(in));
		String strLine;


		BufferedWriter out = null;
		try {
			out = new BufferedWriter(new FileWriter(path+batchfile +"_"+contentInPercent+"_percent_session_"+session));
		} catch (IOException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}

		try {
			int count = 0;
			while ((strLine = br.readLine()) != null) {
				if(chosenNumbers.contains(count))
					out.write(strLine+"\n");
				count++;
			}
			System.out.println("AAA");
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		try {
			out.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}