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

@param document the document that will become the root of a new
lockinfo element
@return         an element editor on a lockinfo element