Update AnnotationManager.java

fixed issue #248