boolean threadOwnsResources() {
    if (dm != null) {
      return dm.getSystem().threadOwnsResources() && !AlertingAction.isThreadAlerting();
    }
    return false;

  }
Returns true if calling thread owns its own communication resources.
geode-core/src/main/java/org/apache/geode/distributed/internal/direct/DirectChannel.java