public function getFirstParent($parentClassName)
    {
        $foundParent = null;

        $this->alongParents(function ($parent) use ($parentClassName, &$foundParent) {
            if ($parent instanceof $parentClassName) {
                $foundParent = $parent;

                return false;
            }

            return true;
        });

        if (null === $foundParent) {
            throw new EntryNotFoundException(
                'The parent "' . $parentClassName . '" was not found in this object (class "' . get_class($this) . '"). Use the function "hasParent()" before your call to this function!',
                1471379635
            );
        }

        return $foundParent;
    }