public static void populateCustomers(ResourceManager rm)
     throws RemoteException, TransactionAbortedException, InvalidTransactionException {
   int xid = rm.start();
   for (String cust : customers) {
     rm.newCustomer(xid, cust);
   }
   rm.commit(xid);
 }
  public static void makeResverations(ResourceManager rm)
      throws RemoteException, TransactionAbortedException, InvalidTransactionException {
    int xid = rm.start();

    rm.reserveFlight(xid, customers[0], "4");
    rm.reserveCar(xid, customers[1], "a");
    rm.reserveRoom(xid, customers[2], "A");
    rm.reserveRoom(xid, "Joe", "A");

    rm.commit(xid);
  }