final CustomLayout layout = new CustomLayout(layoutName);
main.addComponent(layout);
Button button2 = new Button("Populate content");
main.addComponent(button2);
final Button button = new Button("Change content");
main.addComponent(button);
button2.addListener(new Button.ClickListener() {