code: public <T> void delete(T entity) {
  		if (entity == null) {
  			throw new ApitraryOrmException("Cannot delete null entity");
  		}
  
  		log.debug("Deleting " + entity.getClass());
  
  		DeleteRequest request = new DeleteRequest();
  		request.setEntity(resolveApitraryEntity(entity));
  		String id = resolveApitraryEntityId(entity);
  		request.setId(id);
  
  		new CascadeDeleteCapable(this).deleteCascades(entity);
  
  		DeleteResponse response = resolveApitraryClient().send(request);
  		if (HttpStatus.OK.ordinal() != response.getStatusCode()) {
  			if (HttpStatus.Not_Found.ordinal() == response.getStatusCode()) {
  				throw new ApitraryOrmDeleteException("Object with id " + id + " does not exist.");
  			} else {
  				String statusMessage = (String) new DeleteResponseUnmarshaller().unMarshall(response, entity);
  				throw new ApitraryOrmDeleteException(statusMessage);
  			}
  		}
  	}
docs: <p>
  delete.
  </p>
  
  @param entity
  a T object.
  @param <T>
  a T object.