private ExchangeRate getUniqueExchangeRate() {
    ExchangeRate exchangeRate = null;
    for (ExchangeRate exgRate : exchangeRateList) {
      if (getExchangeRate().getFromCurrency().equals(exgRate.getFromCurrency())
          && getExchangeRate().getToCurrency().equals(exgRate.getToCurrency())) {
        exchangeRate = exgRate;
      }
    }

    return exchangeRate;
  }
 private void deleteExchangeRate(
     final ExchangeRate exchangeRate,
     final WebMarkupContainer addExchangerateContainer,
     final WebMarkupContainer updateExchangerateContainer) {
   DeleteExchangeRateRequest request;
   try {
     request = getNewMobiliserRequest(DeleteExchangeRateRequest.class);
     request.setFromCurrency(exchangeRate.getFromCurrency());
     request.setToCurrency(exchangeRate.getToCurrency());
     DeleteExchangeRateResponse response = wsSystemConfClient.deleteExchangeRate(request);
     if (!evaluateMobiliserResponse(response)) return;
     this.forceReload = true;
     createExchangeRateDataView(updateExchangerateContainer, addExchangerateContainer);
     addExchangerateContainer.setVisible(false);
     updateExchangerateContainer.setVisible(false);
     LOG.info("# Exchange rate deleted successfully");
   } catch (Exception e) {
     LOG.error("# An error occurred while deleting Exchange rate", e);
     error(getLocalizer().getString("delete.exchangerate.error", this));
   }
 }