Need to check and throw an exception if $this->node->getId() is null