Object selectionRowKey = null;
if (!Strings.isNullOrEmpty(selectedNode)) {
RowKeyContextCallback rowKeyContextCallback = new RowKeyContextCallback();
tree.invokeOnComponent(context, selectedNode, rowKeyContextCallback);
selectionRowKey = rowKeyContextCallback.getRowKey();
}
Collection<Object> selection = tree.getSelection();