/** * Simply reads the object associated with the given ID before calling delete(object). This * ensures existence before calling delete. * * @throws ItemNotFoundException if the given ID doesn't exist. * @throws InvalidObjectIdException if the give ID is invalid (for the repository). */ @Override public void delete(Identifier id) { T object = read(id); delete(object); }