drools-eclipse/org.guvnor.eclipse.webdav/src/interface/org/eclipse/webdav/dom/LockDiscovery.java
public Enumeration getActiveLocks() throws MalformedElementException {
        final Node firstActiveLock = getFirstChild(root, "activelock"); //$NON-NLS-1$
        Enumeration e = new Enumeration() {
            Node currentActiveLock = firstActiveLock;

            public boolean hasMoreElements() {
                return currentActiveLock != null;
            }

            public Object nextElement() {
                if (!hasMoreElements())
                    throw new NoSuchElementException();
                ActiveLock result = null;
                try {
                    result = new ActiveLock((Element) currentActiveLock);
                } catch (MalformedElementException ex) {
                    Assert.isTrue(false, Policy.bind("assert.internalError")); //$NON-NLS-1$
                }
                currentActiveLock = getTwin((Element) currentActiveLock, true);
                return result;
            }
        };
        return e;
    }
public Enumeration getActiveLocks() throws MalformedElementException {
        final Node firstActiveLock = getFirstChild(root, "activelock"); //$NON-NLS-1$
        Enumeration e = new Enumeration() {
            Node currentActiveLock = firstActiveLock;

            public boolean hasMoreElements() {
                return currentActiveLock != null;
            }

            public Object nextElement() {
                if (!hasMoreElements())
                    throw new NoSuchElementException();
                ActiveLock result = null;
                try {
                    result = new ActiveLock((Element) currentActiveLock);
                } catch (MalformedElementException ex) {
                    Assert.isTrue(false, Policy.bind("assert.internalError")); //$NON-NLS-1$
                }
                currentActiveLock = getTwin((Element) currentActiveLock, true);
                return result;
            }
        };
        return e;
    }
Returns an <code>Enumeration</code> over this lockdiscovery's
<code>ActiveLock</code>s.

@return an <code>Enumeration</code> of <code>ActiveLock</code>s
@throws MalformedElementException if there is reason to believe that
this editor's underlying element is not well formed