@Override
public Optional<Cache> getCache(final String name) {
try {
return Optional.fromNullable(objectMapper.readValue(
requestFactory.buildGetRequest(new CacheUrl(hostName, projectId, name)).execute().getContent(),
Cache.class));
} catch (final HTTPException e) {
if (e.getStatusCode() == 404) {
return Optional.absent();