public void updateNotifyFlag(PriceNotifProdDetDTO usrDTO)
			throws IOException {
		Gson gson = new Gson();
		BufferedReader buffRead = null;
		PrintWriter out = null;
		PrintWriter pw = null;
		PriceNotifProdDetDTO getDTO;
		try {
			buffRead = new BufferedReader(new FileReader("Add_Favorites.json"));
			Gson gsonUpdate = new GsonBuilder().create();
			proGetResp = gsonUpdate.fromJson(buffRead, ProductSearchResponse.class);
			if (proGetResp != null && proGetResp.getResults().size() >= 1) {
				proResp = new ProductSearchResponse("", results);
				getDTO = new PriceNotifProdDetDTO();
				for (int count = 0; count < proGetResp.getResults().size(); count++) {
					getDTO = proGetResp.getResults().get(count);
					System.out.println("Mail Id: " + getDTO.getMailId());
					System.out.println("Pro Id: " + getDTO.getProductId());
					if (getDTO.getMailId().equalsIgnoreCase(usrDTO.getMailId())
							&& getDTO.getProductId().equalsIgnoreCase(usrDTO.getProductId())
							&& !usrDTO.isNotifyFlag()) {
						getDTO.setNotifyFlag(true);
						proGetResp.getResults().set(count, getDTO);
					} else {
						proGetResp.getResults().set(count, getDTO);
					}
				}
				String json = gson.toJson(proGetResp);
				pw = new PrintWriter("Add_Favorites.json");
				pw.close();
				out = new PrintWriter(new BufferedWriter(new FileWriter("Add_Favorites.json", true)));
				out.write(json);
				out.flush();
				out.close();
			}
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			out.close();
			buffRead.close();
		}
	}