class BeatsEventFactory implements EventFactory<BeatsEvent> {

    @Override
    public BeatsEvent create(final byte[] data, final Map<String, String> metadata, final ChannelResponder responder) {
        final String sender = metadata.get(EventFactory.SENDER_KEY);
        final int seqNumber = Integer.valueOf(metadata.get(BeatsMetadata.SEQNUMBER_KEY));

        return new BeatsEvent(sender, data, responder, seqNumber);
    }

}