room = lesson.getRoomOccupation().getRoom();
    public static IRoom getRoom(final ISuportePersistente persistentSupport, final ISummary summary,            final IShift shift, InfoSummary infoSummary) throws ExcepcaoPersistencia,            FenixServiceException {        IRoom room = null;        if (infoSummary.getIsExtraLesson()) {            if (summary != null && summary.getRoom().getIdInternal().equals(infoSummary.getInfoRoom().getIdInternal())) {                room = summary.getRoom();            } else {                final ISalaPersistente persistentRoom = persistentSupport.getISalaPersistente();                room = (IRoom) persistentRoom.readByOID(Room.class, infoSummary.getInfoRoom()                        .getIdInternal());            }        } else {            ILesson lesson = findlesson(shift, infoSummary);            if (lesson == null) {                throw new FenixServiceException("error.summary.no.shift");            }            if (!verifyValidDateSummary(lesson, infoSummary.getSummaryDate(), lesson                    .getInicio())) {                throw new FenixServiceException("error.summary.invalid.date");            }            infoSummary.setSummaryHour(lesson.getInicio());        }        if (room == null) {            throw new FenixServiceException("error.summary.no.room");        }        return room;    }