if (domainObj == null) {
throw new ResourceNotFoundException();
}
publisher.publishEvent(new BeforeDeleteEvent(domainObj));
invoker.invokeDelete(id);
publisher.publishEvent(new AfterDeleteEvent(domainObj));
return new ResponseEntity<Object>(HttpStatus.NO_CONTENT);
}