static CommonTree substBEChains(String sink, List<String> collectors)
throws RecognitionException, FlumeSpecException {
PatternMatch bePat = recursive(var("be", FlumePatterns.sink(AUTO_BE)));
CommonTree sinkTree = FlumeBuilder.parseSink(sink);
Map<String, CommonTree> beMatches = bePat.match(sinkTree);
ArrayList<String> collSnks = new ArrayList<String>();
for (String coll : collectors) {
collSnks.add("{ lazyOpen => logicalSink(\"" + coll + "\") }");
}