private TrainingCenterDatabaseT createTrainingCenterDatabase(TcxRoute route, int startIndex, int endIndex) {
ObjectFactory objectFactory = new ObjectFactory();
TrainingCenterDatabaseT trainingCenterDatabaseT = objectFactory.createTrainingCenterDatabaseT();
CoursesT coursesT = objectFactory.createCoursesT();
trainingCenterDatabaseT.setCourses(coursesT);
CourseFolderT courseFolderT = createCourseFolder(coursesT);
List<CourseT> courses = courseFolderT.getCourse();
courses.add(createCourse(route, asRouteName(route.getName()), startIndex, endIndex));
return trainingCenterDatabaseT;
}