protected QueryService getQueryService() {
    return getCache().getQueryService();
  }
@return if the opValue is CAS then the existingValue; otherwise null
geode-web-api/src/main/java/org/apache/geode/rest/internal/web/controllers/AbstractBaseController.java