@DELETE @ExceptionHandler @Path("/delete/{id}") public String deleteSupplier(@PathParam("id") long id) { logger.info("inside @class SuppliersRestImpl @method deleteSupplier entry."); Authentication authentication = (Authentication) getSession().getAttribute("authentication"); return supplierService.deleteSupplier(authentication, id); }