//Sixth get lecture list
List<Lecture> lectureList = course.getLectureList();
ArrayList lectureMapList = new ArrayList();
for (Iterator<Lecture> it = lectureList.iterator(); it.hasNext();) {
Lecture lecture = it.next();
Map lectureMap = new HashMap();
lectureMap.put("lectureID", new Integer(lecture.getId()));
lectureMap.put("lectureName", new String(lecture.getLectureName()));
lectureMap.put("lectureLink", new String(lecture.getLink()));
lectureMapList.add(lectureMap);
}
courseDetailMap.put("courseLectures", lectureMapList);