restoreResultSet( );
	public IContent execute( )	{		AutoTextItemDesign textDesign = (AutoTextItemDesign)getDesign();		IAutoTextContent textContent = report.createAutoTextContent( );		setContent(textContent);		initializeContent( textDesign, textContent );		processStyle( design, content );		processVisibility( design, content );				String type = ((AutoTextItemDesign)design).getType();		if (DesignChoiceConstants.AUTO_TEXT_PAGE_NUMBER.equalsIgnoreCase(type))		{			textContent.setType(IAutoTextContent.PAGE_NUMBER);			// If we can get the current page No., set it.			textContent.setText(String.valueOf(context.getPageNumber()));		}		else if (DesignChoiceConstants.AUTO_TEXT_TOTAL_PAGE.equalsIgnoreCase(type))		{			textContent.setType(IAutoTextContent.TOTAL_PAGE);			long totalPage = context.getTotalPage();			if (totalPage <= 0)			{				textContent.setText("---");			}			else			{				textContent.setText(String.valueOf(context.getTotalPage()));			}		}		if ( emitter != null )		{			emitter.startAutoText( textContent );		}		return textContent;	}