drools-eclipse/org.guvnor.eclipse.webdav/src/client/org/eclipse/webdav/client/CollectionHandle.java
public void baselineControl(ILocator baseline) throws DAVException {
        Assert.isNotNull(baseline);

        // Build the document body to describe the baseline control element.
        Document document = newDocument();
        Element root = ElementEditor.create(document, "baseline-control"); //$NON-NLS-1$
        ElementEditor.addChild(root, "baseline", //$NON-NLS-1$
                baseline.getResourceURL(), new String[] {"baseline"}, //$NON-NLS-1$
                true);

        // Send the baseline control method to the server and check the response.
        IResponse response = null;
        try {
            response = davClient.baselineControl(locator, newContext(), document);
            examineResponse(response);
        } catch (IOException e) {
            throw new SystemException(e);
        } finally {
            closeResponse(response);
        }
    }
public void baselineControl(ILocator baseline) throws DAVException {
        Assert.isNotNull(baseline);

        // Build the document body to describe the baseline control element.
        Document document = newDocument();
        Element root = ElementEditor.create(document, "baseline-control"); //$NON-NLS-1$
        ElementEditor.addChild(root, "baseline", //$NON-NLS-1$
                baseline.getResourceURL(), new String[] {"baseline"}, //$NON-NLS-1$
                true);

        // Send the baseline control method to the server and check the response.
        IResponse response = null;
        try {
            response = davClient.baselineControl(locator, newContext(), document);
            examineResponse(response);
        } catch (IOException e) {
            throw new SystemException(e);
        } finally {
            closeResponse(response);
        }
    }
public void baselineControl ( ILocator baseline ) throws DAVException { Assert . isNotNull ( baseline ) ; // Build the document body to describe the baseline control element. Document document = newDocument ( ) ; Element root = ElementEditor . create ( document , "baseline-control" ) ; //$NON-NLS-1$ ElementEditor . addChild ( root , "baseline" , //$NON-NLS-1$ baseline . getResourceURL ( ) , new String [ ] { "baseline" } , //$NON-NLS-1$ true ) ; // Send the baseline control method to the server and check the response. IResponse response = null ; try { response = davClient . baselineControl ( locator , newContext ( ) , document ) ; examineResponse ( response ) ; } catch ( IOException e ) { throw new SystemException ( e ) ; } finally { closeResponse ( response ) ; } }
Create a new version-controlled configuration on the given baseline.

@throws DAVException if the baseline control operation failed.
@see IServer#baselineControl(Locator, Context, Document)
Create a new version - controlled configuration on the given baseline .