throw new ExistingServiceException("A sala est� ocupada");
throw new ExistingServiceException("A sala est ocupada");
    public void createRoomOccupation(IPeriod period, Calendar startTime, Calendar endTime,            DiaSemana dayOfWeek, Integer frequency, Integer week, IWrittenEvaluation writtenEvaluation) throws ExistingServiceException {        boolean isFree = isFree(period, startTime, endTime, dayOfWeek, RoomOccupation.DIARIA, null);        if (!isFree) {            throw new ExistingServiceException("A sala est� ocupada");        }        RoomOccupation roomOccupation = new RoomOccupation(this,                startTime, endTime, dayOfWeek, RoomOccupation.DIARIA);        roomOccupation.setPeriod(period);        roomOccupation.setWrittenEvaluation(writtenEvaluation);    }