First draft for polymorphism support in AnnotationLibrary