drools-eclipse/org.guvnor.eclipse.webdav/src/client/org/eclipse/webdav/client/AbstractResourceHandle.java
public boolean exists() throws DAVException {

        // Test existance by issuing a HEAD request.
        IResponse response = null;
        try {
            response = davClient.head(locator, newContext());
            // If the resource was not found, then that answers the question.
            if (response.getStatusCode() == IResponse.SC_NOT_FOUND)
                return false;

            // Otherwise check for errors.
            examineResponse(response);

            // No problems by this point, so the resource is there and OK.
            return true;
        } catch (IOException exception) {
            throw new SystemException(exception);
        } finally {
            closeResponse(response);
        }
    }
public boolean exists() throws DAVException {

        // Test existance by issuing a HEAD request.
        IResponse response = null;
        try {
            response = davClient.head(locator, newContext());
            // If the resource was not found, then that answers the question.
            if (response.getStatusCode() == IResponse.SC_NOT_FOUND)
                return false;

            // Otherwise check for errors.
            examineResponse(response);

            // No problems by this point, so the resource is there and OK.
            return true;
        } catch (IOException exception) {
            throw new SystemException(exception);
        } finally {
            closeResponse(response);
        }
    }
Return a boolean value indicating whether or not this resource
exists on the server.
<p>
This implementation uses the HTTP HEAD method so the URL may or
may not exist in the DAV namespace. The DAV RESOURCE_TYPE property
is NOT checked.</p>

@return boolean <code>true</code> if the resource exists on the server
or <code>false</code> otherwise.
@exception DAVException if there was a problem checking for
existence.