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

        if(command == UserAction.ADD){
            Customer newC = new Customer(
                    args.get("name"),
                    args.get("phone"),
                    args.get("addr"),
                    args.get("email"),
                    args.get("pass"),
                    custCount+1
                    );
            addNewCust(newC);
            XMLCWrite.printToFile(customers);
            return XMLCWrite.getCustXML(newC);
        }
        else if(command == UserAction.REMOVE){
            Customer removed = removeCust(Integer.parseInt(args.get("custid")));
            XMLCWrite.printToFile(customers);
            return XMLCWrite.getCustXML(removed);
        }
        else if(command == UserAction.GET){
            return XMLCWrite.getCustXML(getCustomer(Integer.parseInt(args.get("custid"))));
        }
        else if(command == UserAction.GETALL){
            return XMLCWrite.getAllCustXML(customers);
        }
        else if(command == UserAction.CHECK){
            String em = args.get("email");
            String pas = args.get("pass");
            Customer cust = authenticateCust(em, pas);
            if(cust == null){
                return "";
            }
            return XMLCWrite.getCustXML(cust);
        }

        return null;
    }