Added a convenience method to access the controller for the current state (last node in the current path).