//loop through each page in progress bar,
//adding each as a separate section to the review form
for(int i=0; i<submissionPages.length; i++)
{
StepAndPage currentStepAndPage = new StepAndPage(submissionPages[i]);
//If the step we are looking at is this current
// Review/Verify step, exit the for loop,
// since we have completed all steps up to this one!
if(currentStepAndPage.equals(this.stepAndPage))
{
break;
}
//load up step configuration
SubmissionStepConfig stepConfig = subConfig.getStep(currentStepAndPage.getStep());
//load the step's XML-UI Class
AbstractStep stepUIClass = loadXMLUIClass(stepConfig.getXMLUIClassName());
try
{
//initialize this class (with proper step parameter)
parameters.setParameter("step", currentStepAndPage.toString());
stepUIClass.setup(resolver, objectModel, src, parameters);
}
catch(Exception e)
{
throw new UIException("Unable to initialize AbstractStep identified by "