@SuppressWarnings("rawtypes")
@Override
public String validate(Field<?> field, String value) {
int select = 0;
if (field instanceof MultiField) {
MultiField multiField = (MultiField) field;
List fields = multiField.getAll();
Iterator it = fields.iterator();
while (it.hasNext()) {
Field actualField = (Field) it.next();
if (actualField.getValue()==Boolean.TRUE){
select++;