class EhcacheWebServiceEndpoint {

    @WebMethod
    public Statistics getStatistics(String cacheName) throws IllegalStateException {
        net.sf.ehcache.Cache cache = lookupCache(cacheName);
        return new Statistics(cache.getStatistics());
    }

}