fileName = fileName.substring( 0, fileName.lastIndexOf( '.' ) ) + SUFFIX_REPORT_DOCUMENT;
fileName = fileName.substring( 0, fileName.lastIndexOf( '.' ) ); }   String id = getParameter( request, PARAM_ID ); if ( id != null && id.length( ) > 0 ) { fileName = fileName + id + SUFFIX_REPORT_DOCUMENT;
	protected static String generateDocumentFromReport(			HttpServletRequest request )	{		String fileName = getReport( request );		if ( fileName.indexOf( '.' ) >= 0 )		{			fileName = fileName.substring( 0, fileName.lastIndexOf( '.' ) )					+ SUFFIX_REPORT_DOCUMENT;		}		else		{			fileName = fileName + SUFFIX_REPORT_DOCUMENT;		}		return fileName;	}