drools-eclipse/org.guvnor.eclipse.webdav/src/client/org/eclipse/webdav/client/AbstractResourceHandle.java
public CollectionHandle getParent() throws DAVException {
        Assert.isTrue(locator.getLabel() == null);
        Assert.isTrue(!locator.isStable());

        try {
            URL url = URLTool.getParent(locator.getResourceURL());
            if (url == null)
                return null;
            String parentName = url.toString();
            ILocator parentLocator = davClient.getDAVFactory().newLocator(parentName);
            return new CollectionHandle(davClient, parentLocator);

        } catch (MalformedURLException e) {
            throw new SystemException(e);
        }
    }
public CollectionHandle getParent() throws DAVException {
        Assert.isTrue(locator.getLabel() == null);
        Assert.isTrue(!locator.isStable());

        try {
            URL url = URLTool.getParent(locator.getResourceURL());
            if (url == null)
                return null;
            String parentName = url.toString();
            ILocator parentLocator = davClient.getDAVFactory().newLocator(parentName);
            return new CollectionHandle(davClient, parentLocator);

        } catch (MalformedURLException e) {
            throw new SystemException(e);
        }
    }
Returns a collection handle for the parent of this resource.
<p>
Note that this method does NOT perform a method call to the
server to ensure that the collection exists.</p>
<p>
Returns <code>null</code> if this resource is the root.

<em>NOTE</em>
The parent of a resource is, in general, ambiguous and may not
be immediately discernable from a resource locator.  For example,
a locator with a 'label' qualifier will identify a version of a version-
controlled resource, and the parent will not be found by a simple URL
operation.  Where a handle is created on a stable URL (i.e. a version URL)
there is no concept of a 'parent' resource.
Clients require further contextual information to determine
the 'parent' of a resource in these cases.

@return the handle for the parent of this resource, or
<code>null</code>.