drools-eclipse/org.guvnor.eclipse.webdav/src/interface/org/eclipse/webdav/dom/HrefSet.java
public static HrefSet create(Document document, QualifiedName name) {
        Assert.isNotNull(document);
        Assert.isTrue(document.getOwnerDocument() == null);
        Assert.isNotNull(name);
        Assert.isTrue(DAV_NS.equals(name.getQualifier()));
        Element element = create(document, name.getLocalName());
        try {
            return new HrefSet(element, name);
        } catch (MalformedElementException e) {
            Assert.isTrue(false, Policy.bind("assert.internalError")); //$NON-NLS-1$
            return null; // Never reached.
        }
    }
public static HrefSet create(Document document, QualifiedName name) {
        Assert.isNotNull(document);
        Assert.isTrue(document.getOwnerDocument() == null);
        Assert.isNotNull(name);
        Assert.isTrue(DAV_NS.equals(name.getQualifier()));
        Element element = create(document, name.getLocalName());
        try {
            return new HrefSet(element, name);
        } catch (MalformedElementException e) {
            Assert.isTrue(false, Policy.bind("assert.internalError")); //$NON-NLS-1$
            return null; // Never reached.
        }
    }
Creates a new href set element with the given name and sets it as
the root of the given document. Returns an editor on the new href set
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
href set element
@return         an element editor on a href set element