protected KmlType createKmlType(KmlRoute route, int startIndex, int endIndex) {
ObjectFactory objectFactory = new ObjectFactory();
KmlType kmlType = objectFactory.createKmlType();
DocumentType documentType = objectFactory.createDocumentType();
kmlType.setAbstractFeatureGroup(objectFactory.createDocument(documentType));
documentType.setName(IGO_ROUTE);
documentType.setDescription(trimLineFeedsAndCommas(asDescription(route.getDescription())));
documentType.setOpen(TRUE);
FolderType folderType = createWayPoints(route, startIndex, endIndex);