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

			
			JSONObject object = new JSONObject();

				object.put("receiveMessage", output);
				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 (InterruptedException e) {
			logger.error("thread is Interrupted for the : " + e.getMessage());
		} catch (Exception e) {
		logger.error("Exception : " + e.getMessage());
	    }
	  
	}