Source:
private void addGlobalPreferences(boolean libraryPreferencesEnabled, boolean artifactRepositoryPreferencesEnabled) { final boolean canEditGlobalPreferences = authorizationManager.authorize(WorkbenchFeatures.EDIT_GLOBAL_PREFERENCES, sessionInfo.getIdentity()); if (canEditGlobalPreferences == false) { return; } if (libraryPreferencesEnabled) { adminPage.addPreference("root", "LibraryPreferences", translationService.format(PreferencesConstants.LibraryPreferences_Title), new Sets.Builder().add("fa").add("fa-cubes").build(), "preferences", scopeFactory.createScope(GuvnorPreferenceScopes.GLOBAL), AdminPageOptions.WITH_BREADCRUMBS); } if (artifactRepositoryPreferencesEnabled) { adminPage.addPreference("root", "ArtifactRepositoryPreference", translationService.format(PreferencesConstants.ArtifactRepositoryPreferences_Title), new Sets.Builder().add("fa").add("fa-archive").build(), "preferences", scopeFactory.createScope(GuvnorPreferenceScopes.GLOBAL), AdminPageOptions.WITH_BREADCRUMBS); } adminPage.addPreference("root", "ManagePreferences", constants.ProcessAdministration(), new Sets.Builder().add("pficon").add("pficon-storage-domain").build(), "general", scopeFactory.createScope(GuvnorPreferenceScopes.GLOBAL), AdminPageOptions.WITH_BREADCRUMBS); adminPage.addTool("root", constants.ServiceTasksAdministration(), new Sets.Builder().add("fa").add("fa-cogs").build(), "services", () -> { final Command accessServiceTasks = () -> placeManager.goTo("ServiceTasksRepositoryPreferences"); accessServiceTasks.execute(); addAdminBreadcrumbs("ServiceTasksRepositoryPreferences", constants.ServiceTasksAdministration(), accessServiceTasks); }); }

Target:
private void addGlobalPreferences(boolean libraryPreferencesEnabled, boolean artifactRepositoryPreferencesEnabled) { final boolean canEditGlobalPreferences = authorizationManager.authorize(WorkbenchFeatures.EDIT_GLOBAL_PREFERENCES, sessionInfo.getIdentity()); if (canEditGlobalPreferences == false) { return; } if (libraryPreferencesEnabled) { adminPage.addPreference("root", "LibraryPreferences", translationService.format(PreferencesConstants.LibraryPreferences_Title), new Sets.Builder().add("fa").add("fa-cubes").build(), "preferences", scopeFactory.createScope(GuvnorPreferenceScopes.GLOBAL), AdminPageOptions.WITH_BREADCRUMBS); } if (artifactRepositoryPreferencesEnabled) { adminPage.addPreference("root", "ArtifactRepositoryPreference", translationService.format(PreferencesConstants.ArtifactRepositoryPreferences_Title), new Sets.Builder().add("fa").add("fa-archive").build(), "preferences", scopeFactory.createScope(GuvnorPreferenceScopes.GLOBAL), AdminPageOptions.WITH_BREADCRUMBS); } adminPage.addPreference("root", "ManagePreferences", constants.ProcessAdministration(), new Sets.Builder().add("pficon").add("pficon-storage-domain").build(), "general", scopeFactory.createScope(GuvnorPreferenceScopes.GLOBAL), AdminPageOptions.WITH_BREADCRUMBS); adminPage.addTool("root", constants.ServiceTasksAdministration(), new Sets.Builder().add("fa").add("fa-cogs").build(), "services", () -> { final Command accessServiceTasks = () -> placeManager.goTo(PerspectiveIds.SERVICE_TASK_ADMIN); accessServiceTasks.execute(); addAdminBreadcrumbs(PerspectiveIds.SERVICE_TASK_ADMIN, constants.ServiceTasksAdministration(), accessServiceTasks); }); }