String host = t.getChild(0).getText();
CommonTree tsrc = (CommonTree) t.getChild(1);
String src = genEventSource(tsrc);
CommonTree tsnk = (CommonTree) t.getChild(2);
String snk = genEventSink(tsnk);
FlumeNodeSpec entry = new FlumeNodeSpec(host, src, snk);
cfg.add(entry);
}
return cfg;
} catch (RecognitionException re) {
throw new FlumeSpecException(re.getMessage());