protected function getLastJoinSource()
    {
        $lastJoin = current(array_slice($this->nodes->source->right, -1, 1));

        if (!$lastJoin instanceof Join) {
            throw new UnexpectedValueException(
                "You are not in a Join Operation. Call join() first"
            );
        }

        return $lastJoin;
    }