Cluster cluster = new Cluster();
cluster.addGroup("default", 2);
TimelineDocument doc = new TimelineDocument(new TimelineDocument.Configuration(), "test", "testconfig", "Test Config", Arrays.asList(t0, t1), cluster);
try {
doc.open();
doc.writeTimelines();
doc.close();
} catch (IOException e) {
e.printStackTrace();
}