if (roomOccupation.roomOccupationForDateAndTime(
if (roomOccupation != oldroomOccupation && roomOccupation.roomOccupationForDateAndTime(
    private boolean validNoInterceptingLesson(Calendar startTime, Calendar endTime,            DiaSemana dayOfWeek, Integer frequency, Integer week, IRoom room, IRoomOccupation oldroomOccupation)            throws FenixServiceException, ExcepcaoPersistencia {        final ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport();        final List<IRoomOccupation> roomOccupations = room.getRoomOccupations();        for (final IRoomOccupation roomOccupation : roomOccupations) {            if (roomOccupation.roomOccupationForDateAndTime(                    oldroomOccupation.getPeriod().getStartDate(),                    oldroomOccupation.getPeriod().getEndDate(),                    startTime, endTime, dayOfWeek, frequency, week)) {                return false;            }        }        return true;    }