if(nodeId==1){ // just one node view output
System.out.println("Sleep till transactions complete");
Thread.sleep(10000);
for(int i=1; i<args.length; i++){
BankAccount account = (BankAccount)locator.open(args[i], "r");
System.out.println(account.checkBalance());
locator.release(account);
BankAccount account2 = (BankAccount)locator.open(args[i], "r");
System.out.println(account2.checkBalance());