@Override
    public AutoBalancerMetrics deserialize(String topic, byte[] bytes) {
        try {
            return fromBytes(bytes);
        } catch (Exception e) {
            throw new RuntimeException("Error occurred when deserialize auto balancer metrics.", e);
        }
    }
Deserialize from byte array to Auto Balancer metric

@param bytes Bytes array corresponding to Auto Balancer metric.
@return Deserialized byte array as Auto Balancer metric.
core/src/main/java/kafka/autobalancer/metricsreporter/metric/MetricSerde.java