class CacheResource {

    @GET
    public Cache getCache() {
        LOG.debug("GET Cache {}" + cache);

        net.sf.ehcache.Cache ehcache = MANAGER.getCache(cache);
        if (ehcache == null) {
            throw new NotFoundException("Cache not found");
        }

        //The REST API has extra information encoded in the String representation.
        String cacheAsString = ehcache.toString();
        cacheAsString = cacheAsString.substring(0, cacheAsString.length() - 1);
        cacheAsString = cacheAsString + "size = " + ehcache.getSize() + " ]";

        return new Cache(ehcache.getName(), uriInfo.getAbsolutePath().toString(), cacheAsString,
                new Statistics(ehcache.getStatistics()), ehcache.getCacheConfiguration());
    }

      CacheResource(UriInfo uriInfo, Request request, String cache);

}