cp.setUri(new URIish(clone.getUrl()));
// if all went well, clone
// check for SSO token
Object cookie = request.getAttribute(GitConstants.KEY_SSO_TOKEN);
CloneJob job = new CloneJob(clone, TaskJobHandler.getUserId(request), cp, request.getRemoteUser(), cloneLocation,
webProjectExists ? null : project /* used for cleaning up, so null when not needed */, gitUserName, gitUserMail, initProject, cookie);
return TaskJobHandler.handleTaskJob(request, response, job, statusHandler, JsonURIUnqualificationStrategy.ALL_NO_GIT);
}