Context jndiContext = new InitialContext();
Object ref = jndiContext.lookup("LoanManagerHomeRemote");
LoanManagerHomeRemote home = (LoanManagerHomeRemote)
PortableRemoteObject.narrow(ref, LoanManagerHomeRemote.class);
LoanManagerRemote loanmanager = home.create();
// Get a list of all denied loans
List deniedLoans = loanmanager.deniedLoans();
if(deniedLoans!=null){
//CustomerRemote customer = null;
String customer = new String();
System.out.println("Customers with denied loan applications:");