drools-eclipse/org.guvnor.eclipse.webdav/src/interface/org/eclipse/webdav/dom/Update.java
public static Update createVersion(Document document, String href) {
        Assert.isNotNull(document);
        Assert.isTrue(document.getOwnerDocument() == null);
        Assert.isNotNull(href);
        Element element = create(document, "update"); //$NON-NLS-1$
        try {
            Update editor = new Update(element);
            editor.setVersion(href);
            return editor;
        } catch (MalformedElementException e) {
            Assert.isTrue(false, Policy.bind("assert.internalError")); //$NON-NLS-1$
            return null; //  Never reached.
        }
    }
public static Update createVersion(Document document, String href) {
        Assert.isNotNull(document);
        Assert.isTrue(document.getOwnerDocument() == null);
        Assert.isNotNull(href);
        Element element = create(document, "update"); //$NON-NLS-1$
        try {
            Update editor = new Update(element);
            editor.setVersion(href);
            return editor;
        } catch (MalformedElementException e) {
            Assert.isTrue(false, Policy.bind("assert.internalError")); //$NON-NLS-1$
            return null; //  Never reached.
        }
    }
Creates a new WebDAV update element and sets it as the root of
the given document.  Returns an editor on the new element.
<p>
The document must not be <code>null</code>, and must not already have
a root element.</p>

@param document the document that will become the root of a new
update element
@return         an element editor on a set-target element