public WOComponent applyResult(String resultPath) { setValueForBinding(resultPath, "attributeToSet"); WOComponent result = (WOComponent) valueForBinding("saveAction"); if (result == null) { WOComponent temp = parent(); do { result = temp; temp = result.parent(); } while (temp != null); result.ensureAwakeInContext(context()); } return result; }