Resource resource = getWorker(workLogItem.getAuthor().getName());
if (resource == null) {
continue;
}
WorkReportLine workReportLine;
String code = orderElement.getCode() + "-" + workLogItem.getId();
try {
workReportLine = workReport.getWorkReportLineByCode(code);
} catch (InstanceNotFoundException e) {
workReportLine = WorkReportLine.create(workReport);
workReport.addWorkReportLine(workReportLine);
workReportLine.setCode(code);
}
updateWorkReportLine(workReportLine, orderElement, workLogItem,
resource);
}