if (amount < 10000) {
// using injected callback proxy
pwd = ccSecurity.checkSecurity("Enter password");
} else {
// using request context to get callback proxy
CreditCardSecurity ccSecurity = rqContext.getCallback();
pwd = ccSecurity.checkSecurity("Enter password");
}
if (verifyPassword(card, pwd)) {
break;
}