Fix #772, improve mbean to object conversion and add some helper functions to extract the endpoint name and target context from the current selection.