while (kids.hasNext()) {
UIComponent kid = (UIComponent) kids.next();
if (!(kid instanceof UIParameter)) {
continue;
}
list.add(kid.currentValue(context));
}
Object args[] = (Object[]) list.toArray(new Object[list.size()]);
// Look up the requested message
return (resources.getMessage(context.getLocale(), key, args));