templateDAO = DAOFactory.getObjTemplateDAO();
subreports = subreportDAO.loadSubreportsByMasterRptId( reportBObject.getId() );
for (int i = 0; i < subreports.size(); i++) {
subreport = subreports.get(i);
subreportBObject = bobjectDAO.loadBIObjectForDetail(subreport.getSub_rpt_id());
subreportTemplate = templateDAO.getBIObjectActiveTemplate(subreportBObject.getId());
prefixName = subreportBObject.getId() + "_" + subreportTemplate.getBinId();
pars.put("sr." + (i + 1) + ".ids", prefixName);
logger.debug("ids: " + prefixName);