@RequestMapping(value = "/{cid}", consumes = "application/json", method = RequestMethod.DELETE) @Override public HttpEntity<ResponseBean> delete(@PathVariable("cid") String entity) throws SpartanPersistenceException, Exception { ResponseBean responseBean = new ResponseBean(); org.springframework.http.HttpStatus httpStatus = org.springframework.http.HttpStatus.OK; try { communicationGrouprepo.delete(entity); httpStatus = org.springframework.http.HttpStatus.NO_CONTENT; } catch (org.springframework.transaction.TransactionException e) { throw new com.athena.framework.server.exception.repository.SpartanTransactionException( "can not delete", e.getCause()); } return new org.springframework.http.ResponseEntity<ResponseBean>(responseBean, httpStatus); }