if ((parent != null) && (parent instanceof Product)) { return (AbstractRootAsset)parent.getParent(); }
    public AbstractRootAsset getRoot()    {        AbstractAsset parent = getParent();         if (this instanceof AbstractRootAsset && parent == null) {            return (AbstractRootAsset)this;        }                while ((parent != null)                 && !(parent instanceof AbstractRootAsset)) {                        parent = parent.getParent();        }                return (AbstractRootAsset)parent;    }