in src/main/java/org/apache/geronimo/jcache/simple/SimpleCache.java [678:683]
public void remove() {
if (isClosed() || lastKey == null) {
throw new IllegalStateException(isClosed() ? "cache closed" : "call next() before remove()");
}
SimpleCache.this.remove(lastKey);
}