request.setDavSession(ds);
return true;
} catch (NoSuchWorkspaceException e) {
// the default error-code for NoSuchWorkspaceException is 409 conflict
// which seems not appropriate here
throw new JcrDavException(e, DavServletResponse.SC_NOT_FOUND);
} catch (RepositoryException e) {
throw new JcrDavException(e);
} catch (ServletException e) {
throw new DavException(DavServletResponse.SC_INTERNAL_SERVER_ERROR, e.getMessage());
}
}