private String generateResponse(Map<String, String> args){
        MenuAction command = MenuAction.valueOf(args.get("action"));

        if(command == MenuAction.ADDITEM){
            MenuItem newMI = addItem(
                    args.get("name"),
                    Double.parseDouble(args.get("price")),
                    ItemType.valueOf(args.get("itemtype")));
                    XMLMIWrite.printToFile(menuItems);
            return XMLMIWrite.getMenuItemXML(newMI);
        }
        else if(command == MenuAction.REMOVEITEM){
            MenuItem removedMI = removeItem(args.get("name"));
            return XMLMIWrite.getMenuItemXML(removedMI);
        }
        else if(command == MenuAction.EDITITEM){
            MenuItem editedItem = editItem(
                    args.get("oldname"),
                    args.get("name"),
                    Double.parseDouble(args.get("price")),
                    ItemType.valueOf(args.get("itemtype")));

            return XMLMIWrite.getMenuItemXML(editedItem);
        }
        else if(command == MenuAction.GETMENU){
            return XMLMIWrite.getMenuXML(menuItems);
        }
        else if(command == MenuAction.SAVEMENU){
            XMLMIWrite.printToFile(menuItems);
        }

        return null;
    }