Bug 155493 [Deploy] Pictures and chart pictures are lost when preview on Weblogic Server using WAR deploy
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/utility/ParameterAccessor.java
&& workingFolder.trim( ).endsWith( File.separator ) )
		{
			workingFolder = workingFolder.trim( ).substring( 0,
					workingFolder.trim( ).length( ) - 1 );
		}
		if ( documentFolder == null || documentFolder.trim( ).length( ) <= 0 )
			documentFolder = workingFolder;
		
		webAppLocale = getLocaleFromString( context
				.getInitParameter( INIT_PARAM_LOCALE ) );
		if ( webAppLocale == null )
			webAppLocale = Locale.getDefault( );
		isDocumentFolderAccessOnly = Boolean
				.valueOf(
						context
								.getInitParameter( INIT_PARAM_DOCUMENT_FOLDER_ACCESS_ONLY ) )
				.booleanValue( );
		
		String s_maxRows = context.getInitParameter( INIT_PARAM_VIEWER_MAXROWS );
		try
		{
			maxRows = Integer.valueOf( s_maxRows ).intValue( );
		}
		catch ( NumberFormatException e )
		{
			maxRows = -1;
		}
		
		birtResourceFolder = context
				.getInitParameter( INIT_PARAM_BIRT_RESOURCE_PATH );