try {
TransferOrder transferResp = coreManager.save(TransferOrder.class, transfer);
transferResp.setTransferId(TransferUtil.constructCode(transfer.getTransferDate(), fromStore.getId(), toStore.getId(), transferResp.getId()));
transferResp = coreManager.save(TransferOrder.class, transferResp);
DisplayTransferOrder dto = mapper.map(transferResp, DisplayTransferOrder.class);
resp = dto;
} catch (Exception e) {
SgwtRestErrorResponse resp1 = new SgwtRestErrorResponse(-1);
resp1.addError("exception", e.getMessage());