}
// send zip with manifest by default
boolean withManifest = "false".equals( strWithManifest ) ? false : true;
boolean requiresZip = repositoryFile.isFolder() || withManifest;
BaseExportProcessor exportProcessor = getDownloadExportProcessor( path, requiresZip, withManifest );
originalFileName = requiresZip ? repositoryFile.getName() + ".zip" : repositoryFile.getName(); //$NON-NLS-1$//$NON-NLS-2$
encodedFileName = URLEncoder.encode( originalFileName, "UTF-8" ).replaceAll( "\\+", "%20" );
String quotedFileName = "\"" + originalFileName + "\"";
// add export handlers for each expected file type
exportProcessor.addExportHandler( getDownloadExportHandler() );
// copy streaming output
StreamingOutput streamingOutput = getDownloadStream( repositoryFile, exportProcessor );
final String attachment;