code: public static TableElement eliminateEmptyStructures( TableElement te ){
  		for( int i=te.nrOfSections()-1; i>=0; i--){
  			Section s = te.getSection(i);
  			
  			if( s.getClass() == SectionContainer.class )
  				eliminateEmptyStructures( (SectionContainer)s );
  			else if( s.getClass() == SectionContent.class )
  				eliminateEmptyStructures( (SectionContent)s );
  			
  			if( s.empty() ) te.removeSection( s );
  		}
  		return te;
  	}
docs: Removes all empty Structures from a TableElement and all substructures.