public Application wrapLayout(Layout layout) {
// TODO: add a header to switch the style, etc
// TODO: add bookmark to set the style
final Window mainWindow = new Window("Dev");
final VerticalSplitPanel mainLayout = new VerticalSplitPanel();
mainLayout.setSizeFull();
mainLayout.setSplitPosition(20, Sizeable.UNITS_PIXELS);
mainLayout.setLocked(true);
final DevApplicationHeader header = new DevApplicationHeader(server);
header.setSpacing(true);
mainLayout.setFirstComponent(header);
mainLayout.setSecondComponent(layout);
mainWindow.setContent(mainLayout);
return new DevApplication(server, mainWindow);
}