if (forAttr == null)
{
throw new IllegalStateException("Mandatory attribute 'for'");
}
UIComponent uiComponent = checkbox.findComponent(forAttr);
if (uiComponent == null)
{
throw new IllegalStateException("Could not find component '" + forAttr
+ "' (calling findComponent on component '" + checkbox.getClientId(context) + "')");
}