docs: public static void assertValidNode(MetadataStore metadataStore, Integer nodeId) {
          if(!metadataStore.getCluster().hasNodeWithId(nodeId)) {
              throw new InvalidMetadataException("NodeId " + nodeId + " is not or no longer in this cluster");
          }
      }