String data = getDataAsString();
try {
ObjectNode meta = (ObjectNode) DataSiftClient.MAPPER.readTree(data);
ArrayNode interactions = (ArrayNode) meta.get("interactions");
for (JsonNode interaction : interactions) {
send(new Interaction(interaction));
}
buffer.discardReadBytes();
} catch (IOException e) {
log.warn("Failed to decode interactions", e);
}