}
private final BeanInfo getAnnotationBeanInfo(List<Field> pFields) {
BaseBeanInfo res = new BaseBeanInfo(this.getClass());
for (Field field : pFields) {
ExtendedPropertyDescriptor propDesc = res.addProperty(field.getName());
Property propAnno = field.getAnnotation(Property.class);
if (propAnno.description().length() > 0)
propDesc.setShortDescription(propAnno.description());
propDesc.setCategory(propAnno.category().toString());
if (propAnno.editorClass() != Property.DEFAULT.class)
propDesc.setPropertyEditorClass(propAnno.editorClass());
}
return res;
}