@RequestMapping(value = "/findByCountryId", method = RequestMethod.POST) @Override public HttpEntity<ResponseBean> findByCountryId(@RequestBody FindByBean findByBean) throws SpartanPersistenceException, Exception { com.athena.framework.server.bean.ResponseBean responseBean = new ResponseBean(); org.springframework.http.HttpStatus httpStatus = org.springframework.http.HttpStatus.OK; try { List<sales.app.shared.location.Address> lstaddress = addressrepo.findByCountryId((java.lang.String) findByBean.getFindKey()); responseBean.add("success", true); responseBean.add("message", "Successfully retrived "); responseBean.add("data", lstaddress); } catch (org.springframework.transaction.TransactionException e) { throw new com.athena.framework.server.exception.repository.SpartanTransactionException( "can not find ID", e.getRootCause()); } return new org.springframework.http.ResponseEntity<ResponseBean>(responseBean, httpStatus); }