public function convertNodeToContextPathForRouting(JoinPointInterface $joinPoint)
    {
        $objectArgument = $joinPoint->getMethodArgument('object');
        if ($objectArgument instanceof NodeInterface) {
            return $objectArgument->getContextPath();
        } else {
            return $joinPoint->getAdviceChain()->proceed($joinPoint);
        }
    }