*/
public static String createFolder(String token, String path, String url, File file) throws IOException {
log.info("createFolder(" + token + ", " + path + ", " + url + ", " + file + ")");
HttpClient client = new DefaultHttpClient();
MultipartEntity form = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE, null, Charset.forName("UTF-8"));
form.addPart("folder", new StringBody(file.getName(), Charset.forName("UTF-8")));
form.addPart("path", new StringBody(path, Charset.forName("UTF-8")));
form.addPart("action", new StringBody("2")); // FancyFileUpload.ACTION_FOLDER
HttpPost post = new HttpPost(url + "/frontend/FileUpload;jsessionid=" + token);
post.setHeader("Cookie", "jsessionid=" + token);
post.setEntity(form);
ResponseHandler<String> responseHandler = new BasicResponseHandler();
String response = client.execute(post, responseHandler);