bpDocument.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, host+"/OKMDocument");
token = okmAuth.login(username, password);
doc.setPath(document.getPath());
okmDocument.create(token, doc, FileUtil.readFile(document.getLocalFilename()));
// Logout OpenKM
okmAuth.logout(token);
token = "";
} catch (Exception ex) {