FilesClient.sanitizeForURI(metadata.get(key)));
}
HttpResponse resp = client.execute(method);
response = new FilesResponse(resp);
if (response.getStatusCode() == HttpStatus.SC_UNAUTHORIZED) {
method.abort();
if(login()) {
method = new HttpPost(postUrl);
method.getParams().setIntParameter("http.socket.timeout", connectionTimeOut);
method.setHeader(FilesConstants.X_AUTH_TOKEN, authToken);
if (!(metadata == null || metadata.isEmpty())) {