HTTPBasicAuthFilter authFilter = new HTTPBasicAuthFilter(WOOKIE_USER,WOOKIE_PASS);
ClientConfig clientConfig = new DefaultClientConfig();
Client client = Client.create(clientConfig);
client.addFilter(authFilter);
client.addFilter(new LoggingFilter());
WebResource webResource = client.resource(WOOKIE_URL);
FormDataMultiPart formDataMultiPart = new FormDataMultiPart();
formDataMultiPart.bodyPart(new FileDataBodyPart(WIDGET_PARAM_NAME, widget, MediaType.APPLICATION_OCTET_STREAM_TYPE));