public void put(File source, String destination, boolean overwrite) throws IOException {
int fileNameStart = destination.lastIndexOf('/');
String baseUrl = destination.substring(0, fileNameStart + 1);
String destinationFileName = destination.substring(fileNameStart + 1);
HttpsURL hrl = new HttpsURL(baseUrl);
hrl.setUserinfo(user, userPassword);
WebdavResource wdr = new WebdavResource(hrl);
wdr.putMethod(wdr.getPath() + '/' + destinationFileName, source);
wdr.close();
}