class HistoryEventHandlerService implements ValueChangeHandler<String> {

    protected void processForAppPresenter(DocumentId docId) {
        if (docId != null
                && !equal(appPresenter.getSelectedDocIdOrNull(), docId)) {
            appPresenter.selectDocument(docId);
        }
        Log.info("[gwt-history] document id: " + docId);

        if (docId != null) {
            eventBus.fireEvent(new DocumentSelectionEvent(documentListPresenter
                    .getDocumentInfo(docId)));
        }
    }

    @Inject public  HistoryEventHandlerService(EventBus eventBus,
            DocumentListPresenter documentListPresenter,
            AppPresenter appPresenter,
            SearchResultsPresenter searchResultsPresenter,
            GetTransUnitActionContextHolder getTransUnitActionContextHolder,
            ModalNavigationStateHolder modalStateHolder,
            UserConfigHolder configHolder);

}