}
}
private void writeBugHierarchy( DefaultMutableTreeNode bugNode, int level, String titleHierarchy, Sink sink, XMLStreamWriter xml) throws Exception
{
BugInfo bug = (BugInfo) bugNode.getUserObject();
MavenReportUtils.addTitleWithAnchor(sink, level, titleHierarchy + " " + bug.getSummary(), "" + bug.getId());
xml.writeStartElement("bug");
xml.writeAttribute("id", "" + bug.getId());
xml.writeCharacters( bug.getSummary());
if ( (bug.getEstimatedTime() != 0) && ( bug.getCumulatedWorkedTime() + bug.getRemainingTime() > bug.getEstimatedTime()))
{
sink.bold();
sink.text("!!! EXCEEDING TIME LIMIT !!!");
sink.bold_();
}
MavenReportUtils.startTable(sink);
MavenReportUtils.tableRow(sink, new String[]{ "Status/Resolution", bug.getStatus() + "/" + bug.getResolution()});
MavenReportUtils.tableRow(sink, new String[]{ "Cumulated/Estimated/Remaining Time (hours)", bug.getCumulatedWorkedTime()+ "/" + bug.getEstimatedTime() + "/" + bug.getRemainingTime()});
MavenReportUtils.tableRow(sink, new String[]{ "Deadline/Milestone", bug.getDeadline()+ "/" + bug.getMilestone()});
MavenReportUtils.tableRow(sink, new String[]{ "Priority/Severity", bug.getPriority()+ "/" + bug.getSeverity()});
MavenReportUtils.endTable(sink);
Enumeration<DefaultMutableTreeNode> children = bugNode.children();
int index = 1;