Added support for registerAnnotationClasses()