List infoPaymentPhases = collectPaymentPhases(gratuityForm);
List<InfoPaymentPhase> infoPaymentPhases = collectPaymentPhases(gratuityForm);
    public ActionForward removePhase(ActionMapping mapping, ActionForm form, HttpServletRequest request,            HttpServletResponse response) {        DynaValidatorForm gratuityForm = (DynaValidatorForm) form;        maintainState(request, gratuityForm);        List infoPaymentPhases = collectPaymentPhases(gratuityForm);        removePhasesFromList(gratuityForm, infoPaymentPhases);        request.setAttribute("infoPaymentPhases", infoPaymentPhases);        return mapping.findForward("insertGratuityData");    }