@Override
  protected ExpirationAction getAction() {
    long ttl = getTTLAttributes().getTimeout();
    long idle = getIdleAttributes().getTimeout();
    ExpirationAction action;
    if (ttl == 0) {
      action = getIdleAttributes().getAction();
    } else if (idle != 0 && idle < ttl) {
      action = getIdleAttributes().getAction();
    } else {
      action = getTTLAttributes().getAction();
    }
    return action;
  }
Returns the tasks region entry if it "checks" out. The check is to see if the region entry
still exists.

@throws EntryNotFoundException if the task no longer has a region entry or if the region entry
        it has is removed.
geode-core/src/main/java/org/apache/geode/internal/cache/EntryExpiryTask.java