PaymentOptionDetailsType[] details = resp.getPaymentOptionDetails();
if(details != null) {
_PaymentOptionDetailsBySite.put(site, details);
HashMap detailsByPaymentMethodMap = new HashMap(details.length);
for(int i = 0; i < details.length; i++) {
PaymentOptionDetailsType detail = details[i];
detailsByPaymentMethodMap.put(detail.getPaymentOption(), detail);
}
_PaymentOptionDetailsMapsBySite.put(site, detailsByPaymentMethodMap);
}
}