private void doAdd(File local, VaultFile parent, String path) {
try {
FileInputSource is = new FileInputSource(local);
VaultFsTransaction tx = parent.getFileSystem().startTransaction();
tx.add(path, is);
tx.commit();
System.out.println(local.getName() + " " + local.length() + " bytes.");
} catch (IOException e) {
throw new ExecutionException("Error while uploading file: " + e);
} catch (RepositoryException e) {
throw new ExecutionException("Error while uploading file: " + e);