drools-eclipse/org.guvnor.eclipse.webdav/src/client/org/eclipse/webdav/client/AbstractResourceHandle.java
public Enumeration getLocks() throws DAVException {
        LockDiscovery lockdiscovery = null;
        try {
            Element element = getProperty(DAV_LOCK_DISCOVERY).getProperty();
            lockdiscovery = new LockDiscovery(element);
            return lockdiscovery.getActiveLocks();
        } catch (WebDAVException exception) {
            if (exception.getStatusCode() == IResponse.SC_NOT_FOUND)
                return new EmptyEnumeration();
            throw exception;
        } catch (MalformedElementException elemException) {
            throw new SystemException(elemException);
        }
    }
public Enumeration getLocks() throws DAVException {
        LockDiscovery lockdiscovery = null;
        try {
            Element element = getProperty(DAV_LOCK_DISCOVERY).getProperty();
            lockdiscovery = new LockDiscovery(element);
            return lockdiscovery.getActiveLocks();
        } catch (WebDAVException exception) {
            if (exception.getStatusCode() == IResponse.SC_NOT_FOUND)
                return new EmptyEnumeration();
            throw exception;
        } catch (MalformedElementException elemException) {
            throw new SystemException(elemException);
        }
    }
Return an Enumeration over ActiveLocks which lists the locks currently
held on this resource. Return an empty enumeration if the lock discovery
property is not found on the resource.

@return the enumeration of active locks
@exception DAVException if there was a problem getting the locks
@see #getProperty(QualifiedName)