ISuportePersistente suportePersistente = PersistenceSupportFactory .getDefaultPersistenceSupport(); IPersistentTeacher persistentTeacher = suportePersistente.getIPersistentTeacher(); IPersistentExecutionCourse executionCourseDAO = suportePersistente .getIPersistentExecutionCourse();
final ISuportePersistente suportePersistente = PersistenceSupportFactory.getDefaultPersistenceSupport(); final IPersistentTeacher persistentTeacher = suportePersistente.getIPersistentTeacher();  final ITeacher teacher = (ITeacher) persistentTeacher.readByOID(Teacher.class, teacherId); if (teacher == null) throw new FenixServiceException("message.teacher-not-found");
    public Boolean run(Integer teacherId, Integer executionYearId,            final List executionCourseResponsabilities) throws FenixServiceException,            ExcepcaoPersistencia, DomainException {        ISuportePersistente suportePersistente = PersistenceSupportFactory                .getDefaultPersistenceSupport();        IPersistentTeacher persistentTeacher = suportePersistente.getIPersistentTeacher();                IPersistentExecutionCourse executionCourseDAO = suportePersistente                .getIPersistentExecutionCourse();        ITeacher teacher = (ITeacher) persistentTeacher.readByOID(Teacher.class, teacherId);        if (teacher == null)            throw new FenixServiceException();        teacher.updateResponsabilitiesFor(executionYearId, executionCourseResponsabilities);                                return Boolean.TRUE;            }       