Source:
<code>public ConsoleTemplate(PageParameters parameters) { super(parameters); ConsoleConfiguration configuration = ConsoleConfiguration.get(); addHeadPageTitleKey(configuration.getConsolePageTitleKey()); add(new ListView<String>("headPageTitle", headPageTitleKeys) { private static final long serialVersionUID = 1L; @Override protected void populateItem(final ListItem<String> item) { item.add(new Label("headPageTitleSeparator", HEAD_PAGE_TITLE_SEPARATOR) { private static final long serialVersionUID = 1L; @Override protected void onConfigure() { super.onConfigure(); setVisible(item.getIndex() > 0); } }); item.add(new Label("headPageTitleElement", new ResourceModel(item.getModelObject()))); } }); add(new AnimatedGlobalFeedbackPanel("animatedGlobalFeedbackPanel", propertyService.get(CONSOLE_GLOBAL_FEEDBACK_AUTOHIDE_DELAY_VALUE), propertyService.get(CONSOLE_GLOBAL_FEEDBACK_AUTOHIDE_DELAY_UNIT)) ); ListView<ConsoleMenuSection> menuSectionsListView = new ListView<ConsoleMenuSection>("menuSectionListView", ConsoleConfiguration.get().getMenuSections()) { private static final long serialVersionUID = 1L; @Override protected void populateItem(ListItem<ConsoleMenuSection> item) { if (item.getModelObject().getMenuItems().size() > 0) { item.add(new MenuSectionWithDropDownFragment("menuSectionFragment", "menuSectionWithDropDown", item.getModel())); } else { item.add(new MenuSectionWithoutDropDownFragment("menuSectionFragment", "menuSectionWithoutDropDown", item.getModel())); } } }; add(menuSectionsListView); add(new CoreLabel("userFullName", new LoadableDetachableModel<String>() { private static final long serialVersionUID = 1L; @Override protected String load() { String userFullName = null; GenericUser<?, ?> user = AbstractCoreSession.get().getUser(); if (user != null) { userFullName = user.getFullName(); } return userFullName; } }).hideIfEmpty()); add(new BookmarkablePageLink<Void>("logoutLink", LogoutPage.class)); <START> add(new Label("version", propertyService.get(VERSION))); <END> add(new BootstrapTooltipDocumentBehavior(getBootstrapTooltip())); add(new WebMarkupContainer("scrollToTop").add(new ScrollToTopBehavior())); }</code><technical_language>ApplicationPropertyModel here</technical_language>

Target:
public ConsoleTemplate(PageParameters parameters) { super(parameters); ConsoleConfiguration configuration = ConsoleConfiguration.get(); addHeadPageTitleKey(configuration.getConsolePageTitleKey()); add(new ListView<String>("headPageTitle", headPageTitleKeys) { private static final long serialVersionUID = 1L; @Override protected void populateItem(final ListItem<String> item) { item.add(new Label("headPageTitleSeparator", HEAD_PAGE_TITLE_SEPARATOR) { private static final long serialVersionUID = 1L; @Override protected void onConfigure() { super.onConfigure(); setVisible(item.getIndex() > 0); } }); item.add(new Label("headPageTitleElement", new ResourceModel(item.getModelObject()))); } }); add(new AnimatedGlobalFeedbackPanel("animatedGlobalFeedbackPanel", propertyService.get(CONSOLE_GLOBAL_FEEDBACK_AUTOHIDE_DELAY_VALUE), propertyService.get(CONSOLE_GLOBAL_FEEDBACK_AUTOHIDE_DELAY_UNIT)) ); ListView<ConsoleMenuSection> menuSectionsListView = new ListView<ConsoleMenuSection>("menuSectionListView", ConsoleConfiguration.get().getMenuSections()) { private static final long serialVersionUID = 1L; @Override protected void populateItem(ListItem<ConsoleMenuSection> item) { if (item.getModelObject().getMenuItems().size() > 0) { item.add(new MenuSectionWithDropDownFragment("menuSectionFragment", "menuSectionWithDropDown", item.getModel())); } else { item.add(new MenuSectionWithoutDropDownFragment("menuSectionFragment", "menuSectionWithoutDropDown", item.getModel())); } } }; add(menuSectionsListView); add(new CoreLabel("userFullName", new LoadableDetachableModel<String>() { private static final long serialVersionUID = 1L; @Override protected String load() { String userFullName = null; GenericUser<?, ?> user = AbstractCoreSession.get().getUser(); if (user != null) { userFullName = user.getFullName(); } return userFullName; } }).hideIfEmpty()); add(new BookmarkablePageLink<Void>("logoutLink", LogoutPage.class)); add(new Label("version", ApplicationPropertyModel.of(VERSION))); add(new BootstrapTooltipDocumentBehavior(getBootstrapTooltip())); add(new WebMarkupContainer("scrollToTop").add(new ScrollToTopBehavior())); }