public transferFiles.model.order.Ordering toTransferOrdering() {
   transferFiles.model.order.Ordering orderingTO = createOrderingTO();
   if (this.getFund() != null) orderingTO.setFund(this.getFund().toTransferFund(orderingTO));
   List<transferFiles.model.denomination.Denomination> denomsTO =
       createDenominationsTO(orderingTO);
   orderingTO.setDenominations(denomsTO);
   return orderingTO;
 }
 public transferFiles.model.order.Ordering toTransferOrdering(
     transferFiles.model.fund.Fund fundTo) {
   transferFiles.model.order.Ordering orderingTO = createOrderingTO();
   orderingTO.setFund(fundTo);
   List<transferFiles.model.denomination.Denomination> denomsTO =
       createDenominationsTO(orderingTO);
   orderingTO.setDenominations(denomsTO);
   return orderingTO;
 }
 public transferFiles.model.order.Ordering toTransferOrdering(
     transferFiles.model.denomination.Denomination denominationTO) {
   transferFiles.model.order.Ordering orderingTO = createOrderingTO();
   orderingTO.setFund(this.fund.toTransferFund(orderingTO));
   List<transferFiles.model.denomination.Denomination> denomsTO = new LinkedList<>();
   try {
     for (Denomination denomination : denominations) {
       if (denomination.getId() == denominationTO.getId()) {
         denomsTO.add(denominationTO);
       } else {
         denomsTO.add(denomination.toDenominationTO(orderingTO));
       }
     }
   } catch (LazyInitializationException e) {
     denomsTO = null;
   }
   orderingTO.setDenominations(denomsTO);
   return orderingTO;
 }