tod.setTransferOrder(to);
tod.setQty(qty);
TransferOrderDetail todResp = coreManager.save(TransferOrderDetail.class, tod);
todResp = coreManager.getTransferOrderDetail(tod.getId());
DisplayTransferOrderDetail det = mapper.map(todResp, DisplayTransferOrderDetail.class);
ProductMeasurement productMeasurement = null;
if(todResp.getProduct().getProductMeasurement() != null && !todResp.getProduct().getProductMeasurement().isEmpty()){
productMeasurement = todResp.getProduct().getProductMeasurement().iterator().next();
}
if(productMeasurement != null){
det.getProduct().setProductMeasurement(mapper.map(productMeasurement, DisplayProductMeasurement.class));
}
resp = det;
}catch (Exception e) {