public static void sendResponse(String output, Long id, Long prdetailsId) {
		
		try {
			post = new HttpPost(prop.getString("PostQuery").trim() + id);
			post.setHeader("Authorization", "Basic " + new String(encoded));
			post.setHeader("Content-Type", "application/json");
			post.addHeader("X-Mifos-Platform-TenantId", tenantIdentifier);

			CSVReader reader = new CSVReader(new StringReader(output));
			String[] tokens = reader.readNext();
			JSONObject object = new JSONObject();

			if (tokens.length > 1) {
				String mes = tokens[1];
				String message = "";
				if (mes.equalsIgnoreCase("0")) {
					message = "success";
				}else {
					String errorid= tokens[1];
					String error = tokens[2];
					message = "failure : Exception error code is : " + errorid + " , Exception/Error Message is : " + error;
				}
				object.put("receiveMessage", message);
				object.put("receivedStatus", "1");
				object.put("prdetailsId", prdetailsId);
			}
			//logger.info("The json data sending to BSS System is :"+object.toString());
			StringEntity se = new StringEntity(object.toString());
			post.setEntity(se);
			HttpResponse response = httpClient.execute(post);
			response.getEntity().consumeContent();
			if (response.getStatusLine().getStatusCode() != 200) {
				logger.error("Failed : HTTP error code : "
						+ response.getStatusLine().getStatusCode());	
				Thread.sleep(wait);
				return;
			}
			else{
				logger.info("record is Updated Successfully in Bss System");
			}
		  

		} catch (IOException e) {
			logger.error("IOException : " + e.getMessage() + ". verify the BSS system server running or not");
		} /*catch (NullPointerException e) {
			logger.error("NullPointerException : " + e.getMessage() + " is passed and Output from the Oss System Server is : " + output);
		}*/ catch (InterruptedException e) {
			logger.error("thread is Interrupted for the : " + e.getMessage());
		} catch (Exception e) {
		logger.error("Exception : " + e.getMessage());
	    }
	  
	}