if (JdkVersion.isAtLeastJava16()) {
return new TabbedSwingDockingApplicationPage(window, descriptor);
} else if (JdkVersion.isAtLeastJava15()) {
return new SwingDockingApplicationPage(window, descriptor);
} else {
return new DesktopApplicationPage(window, descriptor, JDesktopPane.OUTLINE_DRAG_MODE, new DefaultDesktopCommandGroupFactory());
}
}