insertToCell( tableHandle, tableHandle.getHeader( ), columns, true ); insertToCell( tableHandle, tableHandle.getDetail( ), columns, false );
insertToCell( model, tableHandle, tableHandle.getHeader( ), columns, true ); insertToCell( model, tableHandle, tableHandle.getDetail( ), columns, false );
	protected static TableHandle performInsertDataSet( DataSetHandle model )			throws SemanticException	{		// DataSetItemModel[] columns = DataSetManager.getCurrentInstance( )		// .getColumns( model, false );		// if ( columns == null || columns.length == 0 )		// {		// return null;		// }		// // TableHandle tableHandle = SessionHandleAdapter.getInstance( )		// // .getReportDesignHandle( )		// // .getElementFactory( )		// // .newTableItem( null, columns.length );		CachedMetaDataHandle cachedMetadata = DataSetUIUtil.getCachedMetaDataHandle( model );		List columList = new ArrayList( );		for ( Iterator iter = cachedMetadata.getResultSet( ).iterator( ); iter.hasNext( ); )		{			ResultSetColumnHandle element = (ResultSetColumnHandle) iter.next( );			columList.add( element );		}		ResultSetColumnHandle[] columns = (ResultSetColumnHandle[]) columList.toArray( new ResultSetColumnHandle[columList.size( )] );		TableHandle tableHandle = DesignElementFactory.getInstance( )				.newTableItem( null, columns.length );		setInitWidth( tableHandle );		insertToCell( tableHandle, tableHandle.getHeader( ), columns, true );		insertToCell( tableHandle, tableHandle.getDetail( ), columns, false );		tableHandle.setDataSet( model );		return tableHandle;	}