getCurrentRoutes() method in CodeRepository rewritten (to make it simple)