public void editExhibit(String name, String newName, String description, int[] location, ArrayList<MuseumItem> museumItemList) {
        ArrayList<String> updatedlist = new ArrayList<String>();
        List<Exhibit> list = ExhibitDAO.find();
        for(Exhibit e: list) {
            if(e.getExhibitName().equals(name)) {
                if(newName != null)
                    e.setExhibitName(newName);
                if(description != null)
                    e.setExhibitDescription(description);
                if(location != null)
                    e.setExhibitLocation(location);
                if(museumItemList != null) {
                    e.setMuseumItemList(museumItemList);
                    
                    updatedlist.clear();
                    for(MuseumItem item : e.getMuseumItemList()){
                    	updatedlist.add(item.getName());
                    }
                    
                    ExhibitDAO.updateItemsInExhibit(name, updatedlist);
                }
            }
        }
        ExhibitDAO.updateExhibitTable(list);
    }