@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();
			}
			throw Throwables.propagate(e);

		} catch (final Exception e) {
			throw Throwables.propagate(e);
		}
	}
@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();
			}
			throw Throwables.propagate(e);

		} catch (final Exception e) {
			throw Throwables.propagate(e);
		}
	}
@ 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 ( ) ; } throw Throwables . propagate ( e ) ; } catch ( final Exception e ) { throw Throwables . propagate ( e ) ; } }
/*
(non-Javadoc)

@see
com.github.mrcritical.ironcache.SimpleIronCache#getCache(java.lang.String
)
/ * ( non - Javadoc )