NS_ENSURE_TRUE(result, NS_ERROR_FAILURE);
if (!result) return NS_ERROR_FAILURE;
nsXFormsGroupElement::Process(){#ifdef DEBUG_XF_GROUP  printf("nsXFormsGroupElement::Process()\n");#endif  mModelID.Truncate();  nsCOMPtr<nsIDOMNode> modelNode;  nsCOMPtr<nsIDOMElement> bindElement;  nsCOMPtr<nsIDOMXPathResult> result =    nsXFormsUtils::EvaluateNodeBinding(mElement,                                       nsXFormsUtils::ELEMENT_WITH_MODEL_ATTR,                                       NS_LITERAL_STRING("ref"),                                       EmptyString(),                                       nsIDOMXPathResult::FIRST_ORDERED_NODE_TYPE,                                       getter_AddRefs(modelNode),                                       getter_AddRefs(bindElement));      nsCOMPtr<nsIModelElementPrivate> model = do_QueryInterface(modelNode);    if (model) {    model->AddFormControl(this);  }    NS_ENSURE_TRUE(result, NS_ERROR_FAILURE);  // Get model ID  nsCOMPtr<nsIDOMElement> modelElement = do_QueryInterface(modelNode);  NS_ENSURE_TRUE(modelElement, NS_ERROR_FAILURE);  modelElement->GetAttribute(NS_LITERAL_STRING("id"), mModelID);  // Get context node, if any    nsCOMPtr<nsIDOMNode> singleNode;  result->GetSingleNodeValue(getter_AddRefs(singleNode));  mContextNode = do_QueryInterface(singleNode);  NS_ENSURE_TRUE(mContextNode, NS_ERROR_FAILURE);    return NS_OK;}