A declarative cache framework for Java