Change return type of getAt() method to Path (from List<Path>).