private String printEventHubRuntimeInfo(EventHubRuntimeInformation ehInfo) { if (ehInfo == null) { return "[EventHubRuntimeInformation: null]"; } return String.format("[EventHubRuntimeInformation: createAt=%s, partitionCount=%d, path=%s]", ehInfo.getCreatedAt(), ehInfo.getPartitionCount(), ehInfo.getPath()); }