public ModelAndView processFormSubmission(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception {
DefectVarity defectVarity = (DefectVarity) command;
if (request.getParameter("addParameter") != null) {
defectVarity.getParameters().add(new Parameter());
return new ModelAndView("defectVarityForm", "defectVarity", defectVarity);
}
if (request.getParameter("deleteParameter") != null) {
defectVarity.getParameters().remove(defectVarity.getParameterNumber());
return new ModelAndView("defectVarityForm", "defectVarity", defectVarity);