class ServerNavigationPresenter {

    public void onServerTemplateUpdated(@Observes final ServerTemplateUpdated serverTemplateUpdated) {
        if (serverTemplateUpdated != null &&
                serverTemplateUpdated.getServerTemplate() != null) {
            final ServerTemplate serverTemplate = serverTemplateUpdated.getServerTemplate();
            if (!serverTemplates.contains(serverTemplate.getId())) {
                addTemplate(serverTemplate);
            }
        } else {
            logger.warn("Illegal event argument.");
        }
    }

    @Inject public  ServerNavigationPresenter(final Logger logger,
                                     final View view,
                                     final Event<AddNewServerTemplate> addNewServerTemplateEvent,
                                     final Event<ServerTemplateListRefresh> serverTemplateListRefreshEvent,
                                     final Event<ServerTemplateSelected> serverTemplateSelectedEvent);

}