drools-eclipse/org.guvnor.eclipse.webdav/src/interface/org/eclipse/webdav/dom/SupportedLock.java
public Enumeration getLockEntries() throws MalformedElementException {

        final Node firstLockEntry = getFirstChild(root, "lockentry"); //$NON-NLS-1$

        Enumeration e = new Enumeration() {
            Node currentLockEntry = firstLockEntry;

            public boolean hasMoreElements() {

                return currentLockEntry != null;
            }

            public Object nextElement() {

                if (!hasMoreElements())
                    throw new NoSuchElementException();

                LockEntry result = null;
                try {
                    result = new LockEntry((Element) currentLockEntry);
                } catch (MalformedElementException ex) {
                    Assert.isTrue(false, Policy.bind("assert.internalError")); //$NON-NLS-1$
                }

                currentLockEntry = getTwin((Element) currentLockEntry, true);
                return result;
            }
        };

        return e;
    }
public Enumeration getLockEntries() throws MalformedElementException {

        final Node firstLockEntry = getFirstChild(root, "lockentry"); //$NON-NLS-1$

        Enumeration e = new Enumeration() {
            Node currentLockEntry = firstLockEntry;

            public boolean hasMoreElements() {

                return currentLockEntry != null;
            }

            public Object nextElement() {

                if (!hasMoreElements())
                    throw new NoSuchElementException();

                LockEntry result = null;
                try {
                    result = new LockEntry((Element) currentLockEntry);
                } catch (MalformedElementException ex) {
                    Assert.isTrue(false, Policy.bind("assert.internalError")); //$NON-NLS-1$
                }

                currentLockEntry = getTwin((Element) currentLockEntry, true);
                return result;
            }
        };

        return e;
    }
Returns an <code>Enumeration</code> over this supportedlock's
<code>LockEntry</code>s.

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