TreeTable and Containers

Hello everyone!

I wanted to display data in a TreeTable via a BeanContainer. The items look like this:

public class ExampleData {
    private String name;
    private List<ExampleSub> subs;

    // Getters and Setters...

public class ExampleSub {
    private String name;

    // Getters and Setters

I would like to display the ExampleSub-objects inside of the ExampleData entries. How can I do this without adding items manually?

Also I organized the ExampleSub objects in another BeanContainer. Is it possible to merge them in some way, so that if I edit an ExampleSub object via the first container, the new data will also be updated in the TreeTable?

Thanks in advance,