}
Field[] fields = clazz.getDeclaredFields();
for (Field f : fields) {
declaredAnnotations = f.getDeclaredAnnotations();
if (factory.isFieldUseful(f, declaredAnnotations)) {
AnnotatedField af = new AnnotatedField();
af.setName(f.getName());
af.setType(f.getType().getName());
for (Annotation a : declaredAnnotations) {
pl = factory.getPluginForAnnotation(a.annotationType());
if (pl != null) {
af.getAnnotations().add(pl.parse(a));
}
}
ac.getFields().add(af);
}
}