public XmlWriter getWriter(FilenameXML type) {
        if(type == FilenameXML.Menu) {
            return new MenuItemWriter();
        }
        else if(type == FilenameXML.Customers) {
            return new CustomerWriter();
        }
        else if(type == FilenameXML.Chefs) {
            return new ChefWriter();
        }
        return null;
    }