Iterator annotationIterator = annotationModel.getAnnotationIterator();
List oldAnnotations = new ArrayList();
while (annotationIterator.hasNext()) {
Annotation annotation = (Annotation) annotationIterator.next();
if (ANNOTATION_TYPE.equals(annotation.getType())) {
annotation.markDeleted(true);
/**
* Sometimes it is supported, sometime's it is not. Confusing.
*/
try {
annotationIterator.remove();