protected function setNodeProperties(NodeInterface $node, array $properties, array $args = [])
    {
        foreach ($properties as $property => $value) {
            $value = count($args) && is_string($value) ? vsprintf($value, $args) : $value;
            $node->setProperty($property, $value);
        }
    }