/*
* If the result was only partially successful, throw an exception
*/
if ( !response.getErrors().isEmpty() ) {
throw new MultiObjectDeleteException(response.getErrors(), response.getDeletedObjects());
}
return new DeleteObjectsResult(response.getDeletedObjects());
}