private UIConfiguration createUIConfiguration() {
UIConfiguration uiConfiguration = new UIConfiguration();
// Add a top level page
PageConfiguration topLevelPage = new PageConfiguration( "topLevelPage", TopLevelPage.class );
topLevelPage.setTopLevel( true );
topLevelPage.setTitle( "Top Level Page" );
uiConfiguration.addPageConfiguration( topLevelPage );
// Add a normal page
PageConfiguration page = new PageConfiguration( "page", Page.class );
page.setTitle( "Page" );
// Add a page action
ActionConfiguration pageAction = new ActionConfiguration( "pageAction", PageAction.class );
pageAction.setImage( Configuration.class.getResourceAsStream( "/share.png" ) );
page.addActionConfiguration( pageAction );
uiConfiguration.addPageConfiguration( page );
// Add a global action
ActionConfiguration globalAction = new ActionConfiguration( "globalAction", GlobalAction.class );
globalAction.setImage( Configuration.class.getResourceAsStream( "/page.png" ) );