public static InternalDistributedSystem getConnectedInstance() {
    InternalDistributedSystem result = null;
    synchronized (existingSystemsLock) {
      if (!existingSystems.isEmpty()) {
        InternalDistributedSystem existingSystem = existingSystems.get(0);
        if (existingSystem.isConnected()) {
          result = existingSystem;
        }
      }
    }
    return result;
  }
Returns a connected distributed system for this VM, or null if there is no connected
distributed system in this VM. This method synchronizes on the existingSystems collection.
<p>
author bruce

@since GemFire 5.0
geode-core/src/main/java/org/apache/geode/distributed/internal/InternalDistributedSystem.java