courseT.getTrack().add(createTrack(route, startIndex, endIndex));
return courseT;
}
private TrainingCenterDatabaseT createTrainingCenterDatabase(TcxRoute route, int startIndex, int endIndex) {
ObjectFactory objectFactory = new ObjectFactory();
TrainingCenterDatabaseT trainingCenterDatabaseT = objectFactory.createTrainingCenterDatabaseT();
CourseListT courseListT = objectFactory.createCourseListT();
trainingCenterDatabaseT.setCourses(courseListT);
List<CourseT> courses = courseListT.getCourse();
courses.add(createCourse(route, asRouteName(route.getName()), startIndex, endIndex));
return trainingCenterDatabaseT;
}