Refactored code in TeclaAccessibilityService.selectNode method.
Refactored some code.