public void handleEvent(DOMEvent evt) { String src = this.getAttribute("src"); String ref = getAttribute("ref"); String name = getAttribute("name"); if (src == "" || ref == "" || name == "") { logError("Empty src, ref or name attribute"); return; } NodeSet nset = this.getValue(ref).asNodeSet(); Node refNode = null; if (nset != null) { refNode = nset.firstNode(); } if (refNode == null) { logError("Reference binding failed"); } ((XFormsDocument) ownerDocument).restore(src, refNode, name); }