ListenerManager<DocumentParser.Listener> registrar = ListenerManager.create();
final JsonArray<OutlineNode> output = JsonCollections.createArray();
OutlineConsumer consumer = new OutlineConsumer() {
@Override
public void onOutlineParsed(JsonArray<OutlineNode> nodes) {
output.clear();
output.addAll(nodes);
}