public ArrayList <Reservation> DBreservationRouter (Object sysObject, 
             String action){
    
        //local container
        ArrayList <Reservation> temp;
         
        try{
            if (sysObject instanceof String && "VIEWALL".equals(action)){   
                temp = queryDB.ReservationsForFranchise  (lIO.getfN());
                return temp;
            }
            if (sysObject instanceof Reservation && "VIEWITEM".equals(action)) {    
                temp = queryDB.ReservationsByCustomerForFranchise
                        (((Reservation)sysObject).getFranchiseNumber(), 
                        (((Reservation)sysObject)).getCustomerID());
                return temp;
            }               
        }
        catch(UnauthorizedUserException e){
            Reservation error = new Reservation(e.getMessage(), 
                    "", "", "", "", "", "", "", "", "", "",
                    "", "", "", "", "", "");
            temp = new ArrayList();
            temp.add(error);
            return temp; 
        }
        catch(BadConnectionException e){
            Reservation error = new Reservation(e.getMessage(), 
                    "", "", "", "", "", "", "", "", "", "",
                    "", "", "", "", "", "");
            temp = new ArrayList();
            temp.add(error);
            return temp;
        }          
        catch(DoubleEntryException e){
            Reservation error = new Reservation(e.getMessage(), 
                    "", "", "", "", "", "", "", "", "", "",
                    "", "", "", "", "", "");
            temp = new ArrayList();
            temp.add(error);
            return temp;             
        }
        return null;
    }//end DBreservationRouter method