public static EventID generateEventId() {
    if (isCacheCreated()) {
      return new EventID(InternalDistributedSystem.getAnyInstance());
    }
    return null;
  }
Sets the EventID to the instantiator if distributed system is created
geode-core/src/main/java/org/apache/geode/internal/InternalInstantiator.java