improove code readability in Manager.getHandlers()