drools-eclipse/org.guvnor.eclipse.webdav/src/interface/org/eclipse/webdav/dom/LockDiscovery.java
public ActiveLock addActiveLock() {
        Element activelock = addChild(root, "activelock", childNames, false); //$NON-NLS-1$
        Element locktype = appendChild(activelock, "locktype"); //$NON-NLS-1$
        appendChild(locktype, "write"); //$NON-NLS-1$
        ActiveLock result = null;
        try {
            result = new ActiveLock(activelock);
        } catch (MalformedElementException e) {
            Assert.isTrue(false, Policy.bind("assert.internalError")); //$NON-NLS-1$
        }
        return result;
    }
public ActiveLock addActiveLock() {
        Element activelock = addChild(root, "activelock", childNames, false); //$NON-NLS-1$
        Element locktype = appendChild(activelock, "locktype"); //$NON-NLS-1$
        appendChild(locktype, "write"); //$NON-NLS-1$
        ActiveLock result = null;
        try {
            result = new ActiveLock(activelock);
        } catch (MalformedElementException e) {
            Assert.isTrue(false, Policy.bind("assert.internalError")); //$NON-NLS-1$
        }
        return result;
    }
public ActiveLock addActiveLock ( ) { Element activelock = addChild ( root , "activelock" , childNames , false ) ; //$NON-NLS-1$ Element locktype = appendChild ( activelock , "locktype" ) ; //$NON-NLS-1$ appendChild ( locktype , "write" ) ; //$NON-NLS-1$ ActiveLock result = null ; try { result = new ActiveLock ( activelock ) ; } catch ( MalformedElementException e ) { Assert . isTrue ( false , Policy . bind ( "assert.internalError" ) ) ; //$NON-NLS-1$ } return result ; }
Creates and adds a new activelock on this lockdiscovery and returns
an editor on it.

@return an editor on an activelock element
Creates and adds a new activelock on this lockdiscovery and returns an editor on it .