public DistributionManager getDM() {
    return dm;
  }
Returns the distribution manager without checking for connected or not so can also return null.
geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java