code: public static Table eliminateEmptyStructures( Table t ){
  		for( int i=t.nrOfTableElements()-1; i>=0; i-- ){
  			TableElement te = t.getTableElement(i);
  			eliminateEmptyStructures( te );
  			if( te.empty() ) t.removeTableElement( te );
  		}
  		return t;
  	}
docs: Removes all empty Structures from a Table and all substructures.