private int getTransferNumber(final Transfer transfer) {
   final ScheduledPayment scheduledPayment = transfer.getScheduledPayment();
   int transferNumber = 0;
   for (final Transfer currentTransfer : scheduledPayment.getTransfers()) {
     transferNumber++;
     if (currentTransfer.equals(transfer)) {
       break;
     }
   }
   return transferNumber;
 }
 private int getNumberOfTransfer(final Transfer transfer) {
   final ScheduledPayment scheduledPayment = transfer.getScheduledPayment();
   return scheduledPayment.getTransfers().size();
 }