private SchoolDto createSchool(final EducationHistory log) { School school = log.getSchool(); if (school != null) { return new SchoolDto(school.getId()).withName(school.getName()); } else { return null; } }