if ( webAppLocale == null ) webAppLocale = Locale.getDefault( );
	public synchronized static void initParameters( ServletConfig config )	{		// Report root.in the web.xml has higher priority.		ServletContext context = config.getServletContext( );		workingFolder = context.getInitParameter( INIT_PARAM_REPORT_DIR );		if ( workingFolder == null || workingFolder.trim( ).length( ) <= 0 )		{			// Use birt dir as default report root.			workingFolder = context.getRealPath( "/" ); //$NON-NLS-1$		}		// Report root could be empty. .WAR		// Clear out report location.		if ( workingFolder != null				&& workingFolder.trim( ).endsWith( File.separator ) )		{			workingFolder = workingFolder.trim( ).substring( 0,					workingFolder.trim( ).length( ) - 1 );		}		webAppLocale = getLocaleFromString( context				.getInitParameter( INIT_PARAM_LOCALE ) );		isWorkingFolderAccessOnly = Boolean				.valueOf(						context								.getInitParameter( INIT_PARAM_WORKING_FOLDER_ACCESS_ONLY ) )				.booleanValue( );		// Get preview report max rows parameter from Servlet Context		String s_maxRows = context.getInitParameter( INIT_PARAM_VIEWER_MAXROWS );		try		{			maxRows = Integer.valueOf( s_maxRows ).intValue( );		}		catch ( NumberFormatException e )		{			maxRows = -1;		}		clearDocuments( );	}