Code:
//Define Iterator iter
String policyPath = "";
while (iter.hasNext())
{
deductionL = (DeductionsLocal) iter.next();
String policyID = deductionL.getPolicyID();
policyL = policyH.findByPrimaryKey(policyID);
if(policyL.getStatus().equalsIgnoreCase("READY TO GO INTO FORCE")||policyL.getStatus().equalsIgnoreCase("IN FORCE"))
policyPath = "/NewBusiness/displayPolicyApproved.jsp";
else
policyPath = Utils.getPolicyPath(policyL.getNextAction());
//other code
//end loop
}

