Helper method for traversing controller hiearchy.