gateway.deleteObject(data.asIObject());
    public DataObject removeAnnotationFrom(DataObject annotatedObject,                                             AnnotationData data)            throws DSOutOfServiceException, DSAccessException    {        if (data == null)             throw new IllegalArgumentException("No annotation to delete.");        if (annotatedObject == null)             throw new IllegalArgumentException("No annotated DataObject.");         if (!(annotatedObject instanceof ImageData) &&                 !(annotatedObject instanceof DatasetData))            throw new IllegalArgumentException("This method only supports " +                    "ImageData and DatasetData objects.");                gateway.deleteObject(data.asIObject());        return updateDataObject(annotatedObject);    }