added hasannotation() and annotation() to AbstractSpanAnnotation, since it
supports nesting