class EhcacheWebServiceEndpoint {

    @WebMethod
    public Status getStatus(String cacheName) {
        net.sf.ehcache.Cache cache = lookupCache(cacheName);
        return Status.fromCode(cache.getStatus().intValue());
    }

}