String location = null; String head = null; DAVStatus status = null;
String location; String head; DAVStatus status;
    private String createActivity(String logMessage) throws SVNException {        String activity = myConnection.doMakeActivity();        // checkout head...        String vcc = (String) DAVUtil.getPropertyValue(myConnection, myLocation.getPath(), null, DAVElement.VERSION_CONTROLLED_CONFIGURATION);                String location = null;        String head = null;        DAVStatus status = null;        try {            head = (String) DAVUtil.getPropertyValue(myConnection, vcc, null, DAVElement.CHECKED_IN);            status = myConnection.doCheckout(activity, null, head);        } catch (SVNException e) {            // may be the head changed, retry.            throw e;        }        location = (String) status.getResponseHeader().get("Location");        if (location == null) {            throw new SVNException("failed to check out " +  head + " into " + activity + " : " + status.toString());        }        // proppatch log message.        logMessage = logMessage == null ? "no message" : logMessage;        StringBuffer request = DAVProppatchHandler.generatePropertyRequest(null, "svn:log", logMessage);        myConnection.doProppatch(null, location, request, null);                return activity;    }