mChild.unlinkProject(mParent); return mChild;
mParent.unlinkDataset(mChild); return mParent;
    public static IObject removeIObject(IObject child, IObject parent)    {        if ((child instanceof Dataset) && (parent instanceof Project)) {            Dataset mChild = (Dataset) child;            Project mParent = (Project) parent;            mChild.unlinkProject(mParent);            return mChild;        } else if ((child instanceof Category) &&                 (parent instanceof CategoryGroup)) {            Category mChild = (Category) child;            CategoryGroup mParent = (CategoryGroup) parent;;            mChild.unlinkCategoryGroup(mParent);            return mChild;        } else if ((child instanceof Image) && (parent instanceof Dataset)) {            Image mChild = (Image) child;            Dataset mParent = (Dataset) parent;            mChild.unlinkDataset(mParent);            return mChild;        } else if ((child instanceof Image) && (parent instanceof Category)) {            Image mChild = (Image) child;            Category mParent = (Category) parent;            mChild.unlinkCategory(mParent);            return mChild;        }        throw new IllegalArgumentException("DataObject not supported.");    }