class EhcacheWebServiceEndpoint {

    @WebMethod
    public Cache getCache(String cacheName) throws CacheException {

        Ehcache ehcache = manager.getCache(cacheName);
        if (ehcache != null) {
            return new Cache(ehcache);
        } else {
            return null;
        }
    }

}