}
}
}
} catch (HttpException e) {
if (e.getReasonCode() == HttpStatus.SC_NOT_FOUND) {
throw new SourceNotFoundException("Not found: " + getSecureURI(), e);
}
if (e.getReasonCode() == HttpStatus.SC_BAD_REQUEST) {
throw new SourceException("Server doesn't appear to understand WebDAV: "+getSecureURI(), e);
}
final String msg = "Could not initialize webdav resource at " + getSecureURI()