if (actualHeight+separatorHeight+valueHeight+10<maxFirstSubTemplateHeight){
KpiLine lineRoot=thisBlock.getRoot();
List sourceBeansToAdd2 = newLine(lineRoot, 0,true);
if (sourceBeansToAdd2!=null && !sourceBeansToAdd2.isEmpty()){
Iterator it = sourceBeansToAdd2.iterator();
while(it.hasNext()){
SourceBean toAdd = (SourceBean)it.next();
bandDetailReport.setAttribute(toAdd);
}
}
}else{
//Add last subreport to the List
increaseHeight(subTemplateBaseContent);
subreports.add(subTemplateBaseContent);
actualHeight = new Integer(0);
subTemplateBaseContent = createNewSubReport(countSubreports);
countSubreports ++;
//Get my bandDetailReport from new subreport
subtitleSB=(SourceBean)subTemplateBaseContent.getAttribute("title");
bandDetailReport=(SourceBean)subtitleSB.getAttribute("BAND");
//change subtemplatesummary
subSummarySB=(SourceBean)subTemplateBaseContent.getAttribute("summary");
bandSummaryReport=(SourceBean)subSummarySB.getAttribute("BAND");
//NEW SUBREPORT
KpiLine lineRoot=thisBlock.getRoot();
List sourceBeansToAdd2 = newLine(lineRoot, 0,true);
if (sourceBeansToAdd2!=null && !sourceBeansToAdd2.isEmpty()){
Iterator it = sourceBeansToAdd2.iterator();
while(it.hasNext()){
SourceBean toAdd = (SourceBean)it.next();