if (nextTransaction.getProcedureClass().equals(NewOrder.class)) {
NewOrder proc = (NewOrder) this.getProcedure(NewOrder.class);
proc.run(conn, gen, terminalWarehouseID, numWarehouses,
terminalDistrictLowerID, terminalDistrictUpperID, this);
} else if (nextTransaction.getProcedureClass().equals(Payment.class)) {
Payment proc2 = (Payment) this.getProcedure(Payment.class);
proc2.run(conn, gen, terminalWarehouseID, numWarehouses,
terminalDistrictLowerID, terminalDistrictUpperID, this);
} else if (nextTransaction.getProcedureClass().equals(StockLevel.class)) {
StockLevel proc3 = (StockLevel) this.getProcedure(StockLevel.class);
proc3.run(conn, gen, terminalWarehouseID, numWarehouses,
terminalDistrictLowerID, terminalDistrictUpperID, this);