}
private CuttingManager insertCutting(final String proId,final Boolean overwrite) throws Exception {
OrderManager orderManager=(OrderManager)ModelUtil.getBean(OrderManager.MANAGER_NAME);
Order order = orderManager.findByOrderNr("49838");
Cutting cutting = new Cutting();
cutting.setProId(proId);
cutting.setVersion("110");
cutting.setProSign("JW");
cutting.setOrder(order);
CuttingLine line = new CuttingLine();
line.setName("KAP");
line.setCutId("1");
line.setCutLine("cutLine");
line.setLineNr(1);
line.setArea("area");
line.setDelPcBelongsTo("aDelPcBelongsTo");
line.setDepth("aDepth");
line.setDescription("aDescription");
line.setGrade("aGrade");
line.setGrossLength("aGrossLength");
line.setLengthCenter("aLengthCenter");
line.setNumberOf("aNumberOf");
line.setTickness("aTickness");
line.setTimberMarking("aTimberMarking");
line.setTotalLength("aTotalLength");
cutting.addCuttingLine(line);
CuttingManager cuttingManager = (CuttingManager)ModelUtil.getBean(CuttingManager.MANAGER_NAME);
cuttingManager.saveCutting(cutting,overwrite);
return cuttingManager;
}