public StreamsMetadata getLocalMetadata() {
        return localMetadata.get();
    }
Get the {@link StreamsMetadata}s for the local instance in a {@link KafkaStreams application}

@return the {@link StreamsMetadata}s for the local instance in a {@link KafkaStreams} application
streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamsMetadataState.java