}
public static class SystemStreamPartitionDeserializer extends JsonDeserializer<SystemStreamPartition> {
@Override
public SystemStreamPartition deserialize(JsonParser jsonParser, DeserializationContext context) throws IOException, JsonProcessingException {
ObjectCodec oc = jsonParser.getCodec();
JsonNode node = oc.readTree(jsonParser);
String system = node.get("system").getTextValue();
String stream = node.get("stream").getTextValue();
Partition partition = new Partition(node.get("partition").getIntValue());
return new SystemStreamPartition(system, stream, partition);
}