}
BeanWrapper wrapper = PropertyAccessorFactory
.forBeanPropertyAccess(ReportletConfModalPage.this.reportletConf);
Panel panel;
if (NodeCond.class.equals(field.getType())) {
panel = new UserSearchPanel("value", (NodeCond) wrapper.getPropertyValue(fieldName), false);
// This is needed in order to manually update this.reportletConf with search panel selections
panel.setDefaultModel(new Model<String>(fieldName));
} else if (List.class.equals(field.getType())) {
if (wrapper.getPropertyValue(fieldName) == null) {
wrapper.setPropertyValue(fieldName, new ArrayList());
}