public function getNodeName() { $name = null; if (!$this->node) { $name = "localhost"; } else { $name = $this->node->getName(); } return $name; }