for(Iterator<Cell> iter = firstRow.iterator(); iter.hasNext() && isHeaderRow; ) {
Cell cell = iter.next() ;
for(Iterator<Paragraph> cellIter = cell.iterator(); cellIter.hasNext() && isHeaderRow; ) {
Paragraph paragraph = cellIter.next() ;
if (paragraph instanceof TextParagraph) {
TextParagraph tp = (TextParagraph) paragraph ;
for(Iterator<TextParagraphElement> tpIter = tp.iterator(); tpIter.hasNext() && isHeaderRow; ) {
TextParagraphElement element = tpIter.next() ;
try {
isHeaderRow = Boolean.TRUE.equals(element.getProperty(ElementPropertiesDefaultNames.FORMAT_BOLD)) ;
} catch (InvalidPropertyException e) {
/* This should not happen. */