public function addAnnotation($name, $value, $priority = 0)
    {
        $annotation = $this->getAnnotation($name);
        $new_annotation = array('name' => $name, 'value' => $value, 'priority' => $priority);
        if (!empty($annotation)) {
            if ($priority > $annotation['value']['priority']) {
                $this->setAnnotation($annotation['key'], $new_annotation);
            }
        } else {
            $this->annotations[]= $new_annotation;
        }
    }