Source:
<code>public void createReportContent( final Serializable fileId, final String path, final SimpleReportingComponent reportComponent, final AuditWrapper audit ) throws Exception { final Map<String, Object> inputs = this.createInputs(); ReportListenerThreadHolder.setRequestId( this.instanceId ); audit.audit( userSession.getId(), userSession.getName(), path, getObjectName(), getClass().getName(), MessageTypes.EXECUTION, instanceId, "", 0, this ); reportComponent.setReportFileId( fileId ); reportComponent.setPaginateOutput( true ); reportComponent.setForceDefaultOutputTarget( false ); reportComponent.setDefaultOutputTarget( HtmlTableModule.TABLE_HTML_PAGE_EXPORT_TYPE ); if ( path.endsWith( PRPTI ) ) { reportComponent.setForceUnlockPreferredOutput( true ); } reportComponent.setInputs( inputs ); final AsyncJobFileStagingHandler handler = new AsyncJobFileStagingHandler( userSession ); reportComponent.setOutputStream( handler.getStagingOutputStream() ); final PentahoAsyncReportExecution asyncExec = new PentahoAsyncReportExecution( path, reportComponent, handler, userSession, instanceId, audit ); final IPentahoAsyncExecutor executor = PentahoSystem.get( PentahoAsyncExecutor.class, PentahoAsyncExecutor.BEAN_NAME, null ); if ( reportComponent.validate() ) { final String precomputedId = <START> getRequestParameters().getStringParameter( PRECOMPUTED_ID, UUIDUtil.getUUIDAsString() ); <END> final UUID uuid = executor.addTask( asyncExec, userSession, UUID.fromString( precomputedId ) ); sendSuccessRedirect( uuid ); } else { audit.audit( userSession.getId(), userSession.getName(), path, getObjectName(), getClass().getName(), MessageTypes.FAILED, instanceId, "", 0, this ); sendErrorResponse(); } }</code><technical_language>UUIDUtil is useless class ever. Whats wrong java.util.UUID.randomUUID().toString();</technical_language>

Target:
public void createReportContent( final Serializable fileId, final String path, final SimpleReportingComponent reportComponent, final AuditWrapper audit ) throws Exception { final Map<String, Object> inputs = this.createInputs(); ReportListenerThreadHolder.setRequestId( this.instanceId ); audit.audit( userSession.getId(), userSession.getName(), path, getObjectName(), getClass().getName(), MessageTypes.EXECUTION, instanceId, "", 0, this ); reportComponent.setReportFileId( fileId ); reportComponent.setPaginateOutput( true ); reportComponent.setForceDefaultOutputTarget( false ); reportComponent.setDefaultOutputTarget( HtmlTableModule.TABLE_HTML_PAGE_EXPORT_TYPE ); if ( path.endsWith( PRPTI ) ) { reportComponent.setForceUnlockPreferredOutput( true ); } reportComponent.setInputs( inputs ); final AsyncJobFileStagingHandler handler = new AsyncJobFileStagingHandler( userSession ); reportComponent.setOutputStream( handler.getStagingOutputStream() ); final PentahoAsyncReportExecution asyncExec = new PentahoAsyncReportExecution( path, reportComponent, handler, userSession, instanceId, audit ); final IPentahoAsyncExecutor executor = PentahoSystem.get( PentahoAsyncExecutor.class, PentahoAsyncExecutor.BEAN_NAME, null ); if ( reportComponent.validate() ) { final UUID reservedId = getReservedId(); final UUID uuid = executor.addTask( asyncExec, userSession, reservedId ); sendSuccessRedirect( uuid ); } else { audit.audit( userSession.getId(), userSession.getName(), path, getObjectName(), getClass().getName(), MessageTypes.FAILED, instanceId, "", 0, this ); sendErrorResponse(); } }