public void createWorkspace(SessionInfo sessionInfo, String name, String srcWorkspaceName) throws AccessDeniedException, UnsupportedRepositoryOperationException, NoSuchWorkspaceException, RepositoryException {
if (srcWorkspaceName != null) {
throw new UnsupportedOperationException("JCR-2003. Implementation missing");
}
MkWorkspaceMethod method = null;
try {
method = new MkWorkspaceMethod(uriResolver.getWorkspaceUri(name));
initMethod(method, sessionInfo, true);
getClient(sessionInfo).executeMethod(method);
method.checkSuccess();
} catch (IOException e) {
throw new RepositoryException(e);
} catch (DavException e) {
throw ExceptionConverter.generate(e);
} finally {
if (method != null) {
method.releaseConnection();
}
}
}