public void put_branch(String roll, BasicDBObject document, DB_Init db_table,
			ArrayList<String> branchArray, ArrayList<String> rollStartArray,
			ArrayList<String> rollEndArray) {
		String first_char = roll.substring(0, 1);
		System.out.println("Outside branch insertion module ");
		for (int i = 0; i < branchArray.size(); ++i) {
			String startRoll = rollStartArray.get(i);
			String endRoll = rollEndArray.get(i);
			System.out.println("startROll : " + startRoll + " endROll : "
					+ endRoll + "first_char : " + first_char + "   Roll: "
					+ roll);
			System.out.println(document);
			if (first_char.equals(startRoll.substring(0, 1))) {
				String temp_roll, temp_startRoll, temp_endRoll;
				temp_startRoll = startRoll.substring(1);
				temp_endRoll = endRoll.substring(1);
				temp_roll = roll.substring(1);
				long start = Integer.parseInt(temp_startRoll), end = Integer
						.parseInt(temp_endRoll), current_roll = Integer
						.parseInt(temp_roll);
				if (current_roll >= start && current_roll <= end) {
					if (document.containsField("Branch") == true) {
						System.out.println("START OF DOC" + document);
						String id = document.get("_id").toString();
						BasicDBObject doc2  = new BasicDBObject();
						doc2.put("Branch", branchArray.get(i));
						db_table.original_table.update(new BasicDBObject("_id", id), doc2);
					}
					document.put("Branch", branchArray.get(i));
					System.out.println("Inside branch insertion module "
							+ branchArray.get(i));
				}
			}
		}
	}