Locale locale = Locale.getDefault( );
Locale locale = null;
	public ToC getTOC( String docName, String tocId, InputOptions options )			throws ReportServiceException	{		IReportDocument doc = ReportEngineService.getInstance( )				.openReportDocument( getReportDesignName( options ), docName,						getModuleOptions( options ) );		TOCNode node = null;		if ( doc != null )		{			Locale locale = Locale.getDefault( );			if ( options != null )				locale = (Locale) options.getOption( InputOptions.OPT_LOCALE );			ITOCTree tocTree = doc.getTOCTree(					DesignChoiceConstants.FORMAT_TYPE_VIEWER, ULocale							.forLocale( locale ) );			if ( tocId != null )			{				node = tocTree.findTOC( tocId );			}			else			{				node = tocTree.findTOC( null );			}		}		if ( node == null )		{			if ( doc != null )				doc.close( );			throw new ReportServiceException(					BirtResources							.getMessage( ResourceConstants.REPORT_SERVICE_EXCEPTION_INVALID_TOC ) );		}		if ( doc != null )			doc.close( );		return transformTOCNode( node );	}