public function saveNode(array $attributes = null, array $whiteList = null)
{
$owner = $this->getOwner();
$this->ignoreEvent = true;
if (!$owner->readAttribute($this->primaryKey)) {
$result = $this->makeRoot($attributes, $whiteList);
} else {
$result = $owner->update($attributes, $whiteList);
}
$this->ignoreEvent = false;
return $result;
}