class LumberjackEventFactory implements EventFactory<LumberjackEvent> {

    @Override
    public LumberjackEvent create(final byte[] data, final Map<String, String> metadata, final ChannelResponder responder) {
        final String sender = metadata.get(EventFactory.SENDER_KEY);
        final long seqNumber = Long.valueOf(metadata.get(LumberjackMetadata.SEQNUMBER_KEY));
        final String fields = metadata.get(LumberjackMetadata.FIELDS_KEY);

        return new LumberjackEvent(sender, data, responder, seqNumber, fields);
    }

}