Pair<EffortDuration, OrderElement> previous = transactionService
.runOnAnotherTransaction(new IOnTransaction<Pair<EffortDuration, OrderElement>>() {
@Override
public Pair<EffortDuration, OrderElement> execute() {
try {
WorkReportLine line = workReportLineDAO
.find(workReportLine.getId());
OrderElement orderElement = line
.getOrderElement();
forceLoadParents(orderElement);
return Pair.create(line.getEffort(),
orderElement);
} catch (InstanceNotFoundException e) {
throw new RuntimeException(e);
}
}