class MenuStore extends Store {

  private MenuItem selected = MenuItem.HOME;

  @Override
  public void onAction(Action action) {<FILL_FUNCTION_BODY>}

  public MenuItem getSelected() {
    return selected;
  }
}

    if (action.getType().equals(ActionType.MENU_ITEM_SELECTED)) {
      var menuAction = (MenuAction) action;
      selected = menuAction.getMenuItem();
      notifyChange();
    }
  
<methods>public non-sealed void <init>() ,public abstract void onAction(com.iluwatar.flux.action.Action) ,public void registerView(com.iluwatar.flux.view.View) <variables>private final List<com.iluwatar.flux.view.View> views