/**
  * Adds an additional property to the given <b>$rule</b> instance.
  *
  * @param PHP_PMD_Rule     $rule The context rule object.
  * @param SimpleXMLElement $node The raw xml property node.
  *
  * @return void
  */
 private function addProperty(PHP_PMD_Rule $rule, SimpleXMLElement $node)
 {
     $name = trim($node['name']);
     $value = trim($this->getPropertyValue($node));
     if ($name !== '' && $value !== '') {
         $rule->addProperty($name, $value);
     }
 }