class ElementResource {

    @DELETE
    public void deleteElement() throws NotFoundException {
        LOG.log(Level.FINE, "DELETE element {0}", element);
        net.sf.ehcache.Cache ehcache = lookupCache();

        if (element.equals("*")) {
            ehcache.removeAll();
        } else {
            boolean removed = ehcache.remove(element);
            if (!removed) {
                throw new NotFoundException("Element " + element + " not found");
            }
        }
    }

    public  ElementResource(UriInfo uriInfo, Request request,
                           String cache, String element);

}