modified jpa-cache example