/**
* Registers a new node in the application. Returns the created node.
*
* @param string $name The node to be registered
*
* @return \PAGI\Node\Node
*/
public function register($name)
{
$node = $this->client->createNode($name);
$this->nodes[$name] = $node;
return $node;
}