public Conflatable getAndRemoveFromHAContainer(Conflatable conflatable) {
    Conflatable msg;
    if (conflatable instanceof HAEventWrapper) {
      HAEventWrapper wrapper = (HAEventWrapper) conflatable;
      msg = (Conflatable) haContainer.get(wrapper);
      if (msg != null) {
        decAndRemoveFromHAContainer(wrapper, "GetAndRemoveFromHAContainer");
      }
    } else {
      msg = conflatable;
    }
    return msg;
  }
If the conflatable is an instance of HAEventWrapper, and if the corresponding entry is present
in the haContainer, then decrements its reference count. If the decremented ref count is zero
and put is not in progress, removes the entry from the haContainer, before returning the
{@code ClientUpdateMessage} instance.

@return An instance of {@code ClientUpdateMessage}
@since GemFire 5.7
geode-core/src/main/java/org/apache/geode/internal/cache/ha/HARegionQueue.java