public function addNodeProperty($key, $value)
    {
        if (is_string($value)) {
            $value = '"'.htmlentities($value, ENT_QUOTES, 'UTF-8').'"';
        } elseif (is_int($value)) {
            $value = 'toInt('.$value.')';
        }

        return $key.':'.$value;
    }