if (actionErrors.isEmpty()) {
InfoShift infoShift = (InfoShift) (request.getAttribute(PresentationConstants.SHIFT));
InfoRoomOccupationEditor infoRoomOccupation = null;
if (infoSala != null) {
infoRoomOccupation = new InfoRoomOccupationEditor();
infoRoomOccupation.setDayOfWeek(weekDay);
infoRoomOccupation.setEndTime(fim);
infoRoomOccupation.setStartTime(inicio);
infoRoomOccupation.setInfoRoom(infoSala);
}
final FrequencyType frequency;
if (quinzenal.booleanValue()) {
frequency = FrequencyType.BIWEEKLY;
} else {
frequency = FrequencyType.WEEKLY;
}
if (infoRoomOccupation != null) {
infoRoomOccupation.setFrequency(frequency);
}
String action = request.getParameter("action");
if (action != null && action.equals("edit")) {