public function getNodeFactory() { if ($this->_nodeFactory === null) { $this->setNodeFactory(new NodeFactory()); } return $this->_nodeFactory; }