/**
  * Load all of the @XmlAttribute annotations
  * 
  * @param ClassMetadata $metadata
  */
 protected function loadClassAttributes(ClassMetadata $metadata)
 {
     $reflClass = $metadata->getReflectionClass();
     foreach ($reflClass->getProperties() as $property) {
         foreach ($this->reader->getPropertyAnnotations($property) as $annotation) {
             if ($annotation instanceof XmlAttribute) {
                 $attributeName = !is_null($annotation->name) ? $annotation->name : $property->getName();
                 $nodeName = $annotation->node;
                 $metadata->addAttribute($attributeName, $property->getName(), $nodeName);
             }
         }
     }
 }