final User sysuser=APILocator.getUserAPI().getSystemUser();
ClientResponse response = contRes.path("/publish/1").type(MediaType.MULTIPART_FORM_DATA_TYPE)
.header(authheader, authvalue).put(ClientResponse.class,
new MultiPart()
.bodyPart(new BodyPart(
new JSONObject()
.put("hostFolder", "demo.dotcms.com:/resources")
.put("title", "newfile"+salt+".txt")
.put("fileName", "newfile"+salt+".txt")
.put("languageId", "1")