try {
final RequestData requestData = requestUtil.getRequestData(request);
final MarketArea marketArea = requestData.getMarketArea();
final Set<AbstractPaymentGateway> paymentGateways = marketArea.getPaymentGateways();
for (Iterator<AbstractPaymentGateway> iterator = paymentGateways.iterator(); iterator.hasNext();) {
final AbstractPaymentGateway paymentGateway = (AbstractPaymentGateway) iterator.next();
paymentMethodViewBeans.add(frontofficeViewBeanFactory.buildViewBeanPaymentMethod(requestData, paymentGateway));
}
Collections.sort(paymentMethodViewBeans, new Comparator<PaymentMethodViewBean>() {
@Override