-// JSONObject json = new JSONObject();\r
-// if ( versionedCheck.getState()!=null && !versionedCheck.getState().equals(initialVersioned) )\r
-// json.put("versioned", JSONBoolean.getInstance(versionedCheck.getState()));\r
-//\r
-// JSONArray taga = new JSONArray();\r
-// int i = 0;\r
-// String tagText = tags.getText();\r
-// if (!MULTIPLE_VALUES_TEXT.equals(tagText) && !initialTagText.equals(tagText)) {\r
-// String[] tagset = tagText.split(",");\r
-// for (String t : tagset) {\r
-// JSONString to = new JSONString(t);\r
-// taga.set(i, to);\r
-// i++;\r
-// }\r
-// json.put("tags", taga);\r
-// }\r
-// String jsonString = json.toString();\r
-// if(jsonString.equals("{}")){\r
-// GWT.log("NO CHANGES", null);\r
-// return;\r
-// }\r
-// final List<String> fileIds = new ArrayList<String>();\r
-// for(FileResource f : files)\r
-// fileIds.add(f.getUri()+"?update=");\r
-// MultiplePostCommand rt = new MultiplePostCommand(fileIds.toArray(new String[0]), jsonString, 200){\r
-//\r
-// @Override\r
-// public void onComplete() {\r
-// Pithos.get().getTreeView().refreshCurrentNode(false);\r
-// }\r
-//\r
-// @Override\r
-// public void onError(String p, Throwable t) {\r
-// GWT.log("", t);\r
-// if(t instanceof RestException){\r
-// int statusCode = ((RestException)t).getHttpStatusCode();\r
-// if(statusCode == 405)\r
-// Pithos.get().displayError("You don't have the necessary permissions");\r
-// else if(statusCode == 404)\r
-// Pithos.get().displayError("File does not exist");\r
-// else if(statusCode == 409)\r
-// Pithos.get().displayError("A file with the same name already exists");\r
-// else if(statusCode == 413)\r
-// Pithos.get().displayError("Your quota has been exceeded");\r
-// else\r
-// Pithos.get().displayError("Unable to modify file::"+((RestException)t).getHttpStatusText());\r
-// }\r
-// else\r
-// Pithos.get().displayError("System error modifying file:"+t.getMessage());\r
-// }\r
-// };\r
-// DeferredCommand.addCommand(rt);\r