It looks like that you have switched to a different component, so it is no surprise it needs a different code.
The documentation gives an example (below the picture) of what to set and where to get results. What you have written is basically correct. You set your initial "position" using InputsOutputs.CurrentNodeDescriptor. For single-selection (the normal case), you can get the information about the selected node from the same place (InputsOutputs.CurrentNodeDescriptor) back. In some cases, it is advantageous to obtain the results from Outputs.CurrentNodeDescriptor instead. This is because the Outputs contain *more* information than you put there for input. For example, from the Outputs, for a server node, you can get information about a server vendor, supported specifications etc. But we cannot ask you to provide that information on input.