public function offsetSet($offset, $value)
    {
        if ($value instanceof AnnotationInterface) {
            $offset = $value->getName();
            parent::offsetSet($offset, $value);
        } else {
            throw new Exception\InvalidArgumentException(
                "Only annotation objects can be added to an AnnotationsList."
            );
        }
    }