@Override public List<LaboratoryDto> getLaboratories( SectionDto sectionDto, YearDto yearDto, SemesterDto semesterDto) { Section section = modelMapper.map(sectionDto, Section.class); Year year = modelMapper.map(yearDto, Year.class); Semester semester = modelMapper.map(semesterDto, Semester.class); List<Laboratory> laboratories = laboratoryDao.getLaboratories(section, year, semester); return modelMapper.map(laboratories, new TypeToken<List<LaboratoryDto>>() {}.getType()); }