private MenuItem createInfoMenuItem(final ExplorerNode explorerNode,
                                        final int priority,
                                        final boolean enabled,
                                        final TaskMonitorFactory taskMonitorFactory) {
        final Command command;
        if (enabled && explorerNode != null) {
            command = () -> {
                // Should only be one item as info is not supported for multi selection
                // in the tree
                restFactory
                        .create(EXPLORER_RESOURCE)
                        .method(res -> res.info(explorerNode.getDocRef()))
                        .onSuccess(explorerNodeInfo -> {
                            if (explorerNodeInfo == null) {
                                AlertEvent.fireError(DocumentPluginEventManager.this,
                                        buildNotFoundMessage(explorerNode.getDocRef()),
                                        null);
                            } else {
                                ShowInfoDocumentDialogEvent.fire(
                                        DocumentPluginEventManager.this,
                                        explorerNodeInfo);
                            }
                        })
                        .onFailure(this::handleFailure)
                        .taskMonitorFactory(taskMonitorFactory)
                        .exec();
            };
        } else {
            command = null;
        }

        return new IconMenuItem.Builder()
                .priority(priority)
                .icon(SvgImage.INFO)
                .text("Info")
                .enabled(enabled && explorerNode != null)
                .command(command)
                .build();
    }
Highlights the supplied document item in the explorer tree.
stroom-core-client/src/main/java/stroom/document/client/DocumentPluginEventManager.java