String description) throws UniformInterfaceException,
ClientHandlerException, FileNotFoundException, ParseException,
RequestException {
FormDataMultiPart part = new FormDataMultiPart();
if (description != null) {
part.bodyPart(new FormDataBodyPart("description", description));
}
part.bodyPart(new FileDataBodyPart("file", file,
MediaType.APPLICATION_OCTET_STREAM_TYPE));
ClientResponse response = (ClientResponse) webResource
.accept(MediaType.APPLICATION_XML)