}
if (show) {
if (grpidforcentre == null) {
grpidforcentre = UsercentrerelFinder.findGroupidByUseridCentreid(con, user.getId(), cb.getId());
}
AjaxAutocompleteAnswer aaa = new AjaxAutocompleteAnswer();
aaa.setLabel(cb.getCentrename());
aaa.setValue(cb.getId());
aaa.setExtra1(AdminUserCentreRelFormTag.getGroupSelect(LanguageHandler.getInstance(), user.getLanguageid(),
grpidforcentre, cb.getId(), null, userGroupMap, userGroupRels).toString());
aaac.add(aaa);
}
} else {
AjaxAutocompleteAnswer aaa = new AjaxAutocompleteAnswer();
aaa.setLabel(cb.getCentrename());
aaa.setValue(cb.getId());
aaa.setExtra1(cb.getId()+" : "+ cb.getCentrename());
aaac.add(aaa);
}
}
return aaac;
} finally {