}
else {
// TODO very fragile way of getting the URL
uri = method.builder.getUrl().replaceFirst("/[^/]*$", "") + response.getHeader("Location");
}
cacheKey = new UrlCacheKey(uri);
}
else {
cacheKey = cacheKey(method.builder);
}
if (RequestBuilder.DELETE.toString().equalsIgnoreCase(