private void buildGui() {
final HomePageTuple homePageTuple = lookupHomePageAction();
if(homePageTuple != null) {
Components.permanentlyHide(this, ComponentType.WELCOME);
final ObjectAdapterMemento serviceMemento = MementoFunctions.fromAdapter().apply(homePageTuple.serviceAdapter);
ActionMemento homePageActionMemento = MementoFunctions.fromAction().apply(homePageTuple.action);
Mode mode = homePageTuple.action.getParameterCount() > 0? Mode.PARAMETERS : Mode.RESULTS;
final IModel<?> actionModel = ActionModel.create(serviceMemento, homePageActionMemento, mode, SingleResultsMode.INLINE);
getComponentFactoryRegistry().addOrReplaceComponent(this, ComponentType.ACTION, actionModel);
} else {