class EhcacheWebServiceEndpoint {

    @WebMethod
    public Element getWithLoader(String cacheName, String key) throws NoSuchCacheException {
        net.sf.ehcache.Cache cache = lookupCache(cacheName);
        net.sf.ehcache.Element element = cache.getWithLoader(key, null, null);
        if (element != null) {
            return new Element(element);
        } else {
            return null;
        }
    }

}