persistentRoomOccupation.deleteByOID(RoomOccupation.class, roomOccupation.getIdInternal());
    public static void deleteLesson(final ISuportePersistente persistentSupport, final Integer lessonOID)            throws ExcepcaoPersistencia {        final IAulaPersistente persistenetLesson = persistentSupport.getIAulaPersistente();        final IPersistentRoomOccupation persistentRoomOccupation = persistentSupport                .getIPersistentRoomOccupation();        final ILesson lesson = (ILesson) persistenetLesson.readByOID(Lesson.class, lessonOID);        final IRoomOccupation roomOccupation = lesson.getRoomOccupation();        roomOccupation.setPeriod(null);        roomOccupation.setRoom(null);        persistentRoomOccupation.deleteByOID(RoomOccupation.class, roomOccupation.getIdInternal());        lesson.setShift(null);        lesson.setRoomOccupation(null);        lesson.setSala(null);        lesson.setExecutionPeriod(null);        persistenetLesson.deleteByOID(Lesson.class, lesson.getIdInternal());    }