default Map<SystemStreamPartition, SystemStreamMetadata.SystemStreamPartitionMetadata> getSSPMetadata(
      Set<SystemStreamPartition> ssps) {
    Set<String> streams = ssps.stream().map(SystemStream::getStream).collect(Collectors.toSet());
    Map<String, SystemStreamMetadata> streamToSystemStreamMetadata = getSystemStreamMetadata(streams);
    Map<SystemStreamPartition, SystemStreamMetadata.SystemStreamPartitionMetadata> sspToSSPMetadata = new HashMap<>();
    for (SystemStreamPartition ssp : ssps) {
      SystemStreamMetadata systemStreamMetadata = streamToSystemStreamMetadata.get(ssp.getStream());
      if (systemStreamMetadata != null) {
        SystemStreamMetadata.SystemStreamPartitionMetadata sspMetadata =
            systemStreamMetadata.getSystemStreamPartitionMetadata().get(ssp.getPartition());
        if (sspMetadata != null) {
          sspToSSPMetadata.put(ssp, sspMetadata);
        }
      }
    }
    return sspToSSPMetadata;
  }
Fetch metadata from a system for a set of SSPs.
Implementors should override this if there is a more efficient implementation than delegating to
{@link #getSystemStreamMetadata}.

@param ssps SSPs for which to get metadata
@return A map from SystemStreamPartition to the SystemStreamPartitionMetadata, with an entry for each SSP in
{@code ssps} for which metadata could be found
@throws RuntimeException if there was an error fetching metadata
samza-api/src/main/java/org/apache/samza/system/SystemAdmin.java