*/
public static String createDocument(String token, String path, String url, File file) throws IOException {
log.info("createDocument(" + token + ", " + path + ", " + url + ", " + file + ")");
HttpClient client = new DefaultHttpClient();
MultipartEntity form = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE, null, Charset.forName("UTF-8"));
form.addPart("file", new FileBody(file));
form.addPart("path", new StringBody(path, Charset.forName("UTF-8")));
form.addPart("action", new StringBody("0")); // FancyFileUpload.ACTION_INSERT
HttpPost post = new HttpPost(url + "/frontend/FileUpload;jsessionid=" + token);
post.setHeader("Cookie", "jsessionid=" + token);
post.setEntity(form);