Source:
public Collection<WorkbenchDockEntry> provideDocks(String perspectiveIdentifier) { List<WorkbenchDockEntry> result = new ArrayList<>(); if (lastActiveContext == null) { lastActiveContext = dataModelerWBContext.getActiveContext(); } if (isGraphicMode(lastActiveContext)) { UberfireDock drollsJBPMDock = new UberfireDock(UberfireDockPosition.EAST, "RANDOM", new DefaultPlaceRequest("DroolsDomainScreen"), perspectiveIdentifier); drollsJBPMDock.withSize(450); drollsJBPMDock.withLabel(constants.DocksDroolsJBPMTitle()); WorkbenchDockEntry droolsJBPMEntry = new WorkbenchDockEntry(drollsJBPMDock, false); result.add(droolsJBPMEntry); UberfireDock persistenceDock = new UberfireDock(UberfireDockPosition.EAST, "BRIEFCASE", new DefaultPlaceRequest("JPADomainScreen"), perspectiveIdentifier); persistenceDock.withSize(450); persistenceDock.withLabel(constants.DocksPersistenceTitle()); WorkbenchDockEntry persistenceEntry = new WorkbenchDockEntry(persistenceDock, false); result.add(persistenceEntry); UberfireDock advancedDock = new UberfireDock(UberfireDockPosition.EAST, "COG", new DefaultPlaceRequest("AdvancedDomainScreen"), perspectiveIdentifier); advancedDock.withSize(450); advancedDock.withLabel(constants.DocksAdvancedTitle()); WorkbenchDockEntry advancedEntry = new WorkbenchDockEntry(advancedDock, false); result.add(advancedEntry); if (authorizationManager.authorize(WorkbenchFeatures.PLANNER_AVAILABLE, sessionInfo.getIdentity())) { UberfireDock optaPlannerDock = new UberfireDock(UberfireDockPosition.EAST, WorkbenchImageResources.INSTANCE.optaPlannerDisabledIcon(), WorkbenchImageResources.INSTANCE.optaPlannerEnabledIcon(), new DefaultPlaceRequest("PlannerDomainScreen"), perspectiveIdentifier); optaPlannerDock.withSize(450); optaPlannerDock.withLabel(constants.DocksOptaPlannerTitle()); WorkbenchDockEntry optaPlannerEntry = new WorkbenchDockEntry(optaPlannerDock, false); result.add(optaPlannerEntry); } } return result; }

Target:
public Collection<WorkbenchDockEntry> provideDocks(String perspectiveIdentifier) { List<WorkbenchDockEntry> result = new ArrayList<>(); if (lastActiveContext == null) { lastActiveContext = dataModelerWBContext.getActiveContext(); } if (isGraphicMode(lastActiveContext)) { UberfireDock drollsJBPMDock = new UberfireDock(UberfireDockPosition.EAST, "RANDOM", new DefaultPlaceRequest("DroolsDomainScreen"), perspectiveIdentifier); drollsJBPMDock.withSize(450); drollsJBPMDock.withLabel(constants.DocksDroolsJBPMTitle()); result.add(new WorkbenchDockEntry(drollsJBPMDock, false)); UberfireDock persistenceDock = new UberfireDock(UberfireDockPosition.EAST, "BRIEFCASE", new DefaultPlaceRequest("JPADomainScreen"), perspectiveIdentifier); persistenceDock.withSize(450); persistenceDock.withLabel(constants.DocksPersistenceTitle()); result.add(new WorkbenchDockEntry(persistenceDock, false)); UberfireDock advancedDock = new UberfireDock(UberfireDockPosition.EAST, "COG", new DefaultPlaceRequest("AdvancedDomainScreen"), perspectiveIdentifier); advancedDock.withSize(450); advancedDock.withLabel(constants.DocksAdvancedTitle()); result.add(new WorkbenchDockEntry(advancedDock, false)); if (authorizationManager.authorize(WorkbenchFeatures.PLANNER_AVAILABLE, sessionInfo.getIdentity())) { UberfireDock optaPlannerDock = new UberfireDock(UberfireDockPosition.EAST, WorkbenchImageResources.INSTANCE.optaPlannerDisabledIcon(), WorkbenchImageResources.INSTANCE.optaPlannerEnabledIcon(), new DefaultPlaceRequest("PlannerDomainScreen"), perspectiveIdentifier); optaPlannerDock.withSize(450); optaPlannerDock.withLabel(constants.DocksOptaPlannerTitle()); result.add(new WorkbenchDockEntry(optaPlannerDock, false)); } } return result; }