added convenience method getAnnotations()