public Partition getPartition(InputStream stream) throws IOException {
    byte[] partitionBytes = Partition.readPartitionBytesFromStream(stream);
    return partitionMap.get(ByteBuffer.wrap(partitionBytes));
  }
Gets Partition with specified byte-serialized ID.

@param stream byte-serialized partition ID
@return requested Partition else null.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/PartitionLayout.java