public function hasSharedParent()
    {
        $parent = $this->getParent();

        if ($parent != null && ($parent->isShared() || $parent->hasSharedParent())) {
            return true;
        }

        return false;
    }