Credentials credentials = new Credentials(userName, userPasswd);
webdavClient.setCredentials(credentials);
}
protected void validateClient() throws Exception {
SPHeadMethod headMethod = new SPHeadMethod(getWebdavClient(), rootPath);
headMethod.execute();
}