@Override
    public MenuBarTabHandler set(String key, MenuItemFactory factory) {
        injector.inject(factory);
        final MenuItemFactory oldFactory = byKey.put(key, factory);
        if (oldFactory == null) {
            factories.add(factory);
        } else {
            factories.set(factories.indexOf(oldFactory), factory);
        }
        return this;
    }
Default implementation of {@link MenuBarTabHandler}.

@author Emil Forslund
@since  3.1.5
tool-parent/tool-core/src/main/java/com/speedment/tool/core/internal/menubar/MenuBarTabHandlerImpl.java