CollectorSink coll = (CollectorSink) FlumeBuilder.buildSink(new Context(),
snkspec);
AckChecksumChecker<EventSink> chk = (AckChecksumChecker<EventSink>) coll
.getSink();
// insistent append
EventSinkDecorator deco = (EventSinkDecorator<EventSink>) chk.getSink();
// -> stubborn append
deco = (EventSinkDecorator<EventSink>) deco.getSink();
// stubborn append -> insistent
deco = (EventSinkDecorator<EventSink>) deco.getSink();
// insistent append -> mask
deco = (EventSinkDecorator<EventSink>) deco.getSink();
RollSink roll = (RollSink) deco.getSink();
// normally inside wal
NaiveFileWALDeco.AckChecksumRegisterer<EventSink> snk = new NaiveFileWALDeco.AckChecksumRegisterer(
coll, node.getAckChecker().getAgentAckQueuer());
return new Pair<RollSink, EventSink>(roll, snk);