context.setTOCBuilder( tocBuilder );
	public IPageContent executeMasterPage( int pageNo,			MasterPageDesign masterPage )	{		IReportContent reportContent = context.getReportContent( );		IPageContent pageContent = reportContent.createPageContent( );		pageContent.setGenerateBy( masterPage );		pageContent.setPageNumber( pageNo );		context.setPageNumber( pageNo );		if ( masterPage instanceof SimpleMasterPageDesign )		{			SimpleMasterPageDesign pageDesign = (SimpleMasterPageDesign) masterPage;			InstanceID iid = new InstanceID( null, pageDesign.getID( ), null );			pageContent.setInstanceID( iid );			for ( int i = 0; i < pageDesign.getHeaderCount( ); i++ )			{				pageDesign.getHeader( i ).accept( builder,						new PageContentBuilder( pageContent.getHeader( ) ) );			}			for ( int i = 0; i < pageDesign.getFooterCount( ); i++ )			{				pageDesign.getFooter( i ).accept( builder,						new PageContentBuilder( pageContent.getFooter( ) ) );			}		}		return pageContent;	}