if ( fileName == null || fileName.length() <= 0 ) { fileName = getReport( request ); fileName = fileName.substring( 0, fileName.lastIndexOf( '.' ) ) + ".rptdocument"; }  if ( fileName != null && fileName.length() > 0 ) {  if ( isRelativePath( fileName ) ) { if ( fileName.startsWith( File.separator ) ) { fileName = workingFolder + fileName; } else { fileName = workingFolder + File.separator + fileName; } } }  return fileName;
return filePath;
	public static String getReportDocument( HttpServletRequest request )	{		String fileName = getParameter( request, PARAM_REPORT_DOCUMENT );				if ( fileName == null )		{			fileName = ""; //$NON-NLS-1$		}		else		{			fileName = fileName.trim( );					}		if ( fileName == null || fileName.length() <= 0 )		{			fileName = getReport( request );			fileName = fileName.substring( 0, fileName.lastIndexOf( '.' ) ) + ".rptdocument"; //$NON-NLS-1$		}		if ( fileName != null && fileName.length() > 0 )		{			// Get absolute report location.			if ( isRelativePath( fileName ) )			{				if ( fileName.startsWith( File.separator ) )				{					fileName = workingFolder + fileName;				}				else				{					fileName = workingFolder + File.separator + fileName;				}			}		}				return fileName;	}