boolean isOccupied = roomOccupation.roomOccupationForDateAndTime(periodStart, periodEnd, startTime, endTime, dayOfWeek, frequency, weekOfStart); if (isOccupied) { return true;
if (!roomOccupation.getIdInternal().equals(roomOccupationToRemoveId)) { boolean isOccupied = roomOccupation.roomOccupationForDateAndTime(periodStart, periodEnd, startTime, endTime, dayOfWeek, frequency, weekOfStart); if (isOccupied) { return true; }
    private boolean isOccupied(final IRoom room, final Calendar periodStart, final Calendar periodEnd,            final Calendar startTime, final Calendar endTime, final DiaSemana dayOfWeek,            Integer frequency, Integer weekOfStart) {        final List<IRoomOccupation> roomOccupations = room.getRoomOccupations();        for (final IRoomOccupation roomOccupation : roomOccupations) {            boolean isOccupied = roomOccupation.roomOccupationForDateAndTime(periodStart,                    periodEnd, startTime, endTime, dayOfWeek, frequency, weekOfStart);            if (isOccupied) {                return true;            }        }        return false;    }