class EhcacheWebServiceEndpoint {

    @WebMethod
    public HashMap getAllWithLoader(String cacheName, Collection keys) throws CacheException {
        net.sf.ehcache.Cache cache = lookupCache(cacheName);
        //this is a little awkward. If the Ehcache implementation changes this will break.
        return (HashMap) cache.getAllWithLoader(keys, null);
    }

}