abstraction for persistedEntity, bugfix for delete request