@Override
public void clearCache(final String name) {
try {
final CacheResponse response = objectMapper.readValue(
requestFactory.buildPostRequest(new ClearCacheUrl(hostName, projectId, name), new EmptyContent())
.execute().getContent(), CacheResponse.class);
validate(response, "cleared");
log.debug("Successful request to clear to cache {}", name);