// the user didn't speciefy a normal minimum capacity
}
if (normal != null || exam != null) {
Iterator<InfoRoom> iter = availableInfoRoom.iterator();
while (iter.hasNext()) {
InfoRoom elem = iter.next();
if (!((normal != null && elem.getCapacidadeNormal().intValue() < normal.intValue()) || (exam != null && elem
.getCapacidadeExame().intValue() < exam.intValue()))) {
newAvailableInfoRoom.add(elem);
}
}
} else {
newAvailableInfoRoom = availableInfoRoom;
}
}
if (newAvailableInfoRoom != null && !newAvailableInfoRoom.isEmpty()) {
Collections.sort(newAvailableInfoRoom, new BeanComparator("nome"));
String[] availableRoomId = new String[newAvailableInfoRoom.size()];
Iterator<InfoRoom> iter = newAvailableInfoRoom.iterator();
int i = 0;
while (iter.hasNext()) {
InfoRoom elem = iter.next();
availableRoomId[i] = elem.getExternalId().toString();
}
request.setAttribute(PresentationConstants.AVAILABLE_ROOMS_ID, availableRoomId);
}