drools-eclipse/org.guvnor.eclipse.webdav/src/interface/org/eclipse/webdav/dom/Update.java
public static Update createLabel(Document document, String label) {
        Assert.isNotNull(document);
        Assert.isTrue(document.getOwnerDocument() == null);
        Assert.isNotNull(label);
        Element element = create(document, "update"); //$NON-NLS-1$
        try {
            Update editor = new Update(element);
            editor.setLabelName(label);
            return editor;
        } catch (MalformedElementException e) {
            Assert.isTrue(false, Policy.bind("assert.internalError")); //$NON-NLS-1$
            return null; // Never reached.
        }
    }
public static Update createLabel(Document document, String label) {
        Assert.isNotNull(document);
        Assert.isTrue(document.getOwnerDocument() == null);
        Assert.isNotNull(label);
        Element element = create(document, "update"); //$NON-NLS-1$
        try {
            Update editor = new Update(element);
            editor.setLabelName(label);
            return editor;
        } catch (MalformedElementException e) {
            Assert.isTrue(false, Policy.bind("assert.internalError")); //$NON-NLS-1$
            return null; // Never reached.
        }
    }
public static Update createLabel ( Document document , String label ) { Assert . isNotNull ( document ) ; Assert . isTrue ( document . getOwnerDocument ( ) == null ) ; Assert . isNotNull ( label ) ; Element element = create ( document , "update" ) ; //$NON-NLS-1$ try { Update editor = new Update ( element ) ; editor . setLabelName ( label ) ; 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 an update element.
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 >