public function addNode($absPath, NodeInterface $node)
{
if (!$this->transport instanceof WritingInterface) {
throw new UnsupportedRepositoryOperationException('Transport does not support writing');
}
if (isset($this->objectsByPath['Node'][$absPath])) {
throw new ItemExistsException($absPath);
//FIXME: same-name-siblings...
}
$this->objectsByPath['Node'][$absPath] = $node;
// a new item never has a uuid, no need to add to objectsByUuid
$operation = new AddNodeOperation($absPath, $node);
$this->nodesAdd[$absPath] = $operation;
$this->operationsLog[] = $operation;
}