WebResource webResource = client.resource(WOOKIE_URL);
FormDataMultiPart formDataMultiPart = new FormDataMultiPart();
formDataMultiPart.bodyPart(new FileDataBodyPart(WIDGET_PARAM_NAME, widget, MediaType.APPLICATION_OCTET_STREAM_TYPE));
String string = webResource.type(MediaType.MULTIPART_FORM_DATA).post(String.class, formDataMultiPart);
// Parse respose for searching errors.
System.out.println(string);
}
}