}
public static Object findParameter(UIComponent component, String name) {
for (UIComponent child : component.getChildren()) {
if (child instanceof UIParameter) {
UIParameter parameter = (UIParameter) child;
if (LOG.isDebugEnabled()) {
LOG.debug("Select name='" + parameter.getName() + "'");
LOG.debug("Select value='" + parameter.getValue() + "'");
}
if (name.equals(parameter.getName())) {
return parameter.getValue();
}
}
}
return null;
}