public UploadInfo apply(HttpResponse arg0) {
Response response = json.apply(arg0);
if (response.ResponseCode == null || response.ResponseCode != 0)
throw new RuntimeException("bad response code: "
+ response.ResponseCode);
return new UploadInfo(response.GetStorageNode.get("UploadToken"), URI
.create("https://" + response.GetStorageNode.get("UploadHost")));
}