code: private UIForm getForm(UIComponent component) {
  		while (component != null) {
  			if (component instanceof UIForm) {
  				break;
  			}
  			component = component.getParent();
  		}
  		return (UIForm) component;
  	}
docs: TODO [larmic] find a better way