private MessageType generateCqRegionEvent(CacheEvent event) {
    if (event.getOperation().isRegionDestroy()) {
      return DESTROY_REGION;
    } else if (event.getOperation().isRegionInvalidate()) {
      return INVALIDATE_REGION;
    } else if (event.getOperation().isClear()) {
      return CLEAR_REGION;
    }

    return null;
  }
Returns the Operation for the given EnumListenerEvent type.
geode-cq/src/main/java/org/apache/geode/cache/query/cq/internal/CqServiceImpl.java