private List<AnnotationMetadata> annotationsFor( MethodInfo method ) {
List<AnnotationMetadata> annotations = new LinkedList<AnnotationMetadata>();
for (Object ob : method.getAttributes()) {
AttributeInfo att = (AttributeInfo)ob;
if (att instanceof AnnotationsAttribute) {
for (Annotation ann : ((AnnotationsAttribute)att).getAnnotations()) {
annotations.add(new AnnotationMetadata(ann));
}