final PortfolioReader portfolioReader = new SingleSheetSimplePortfolioReader(format, fileStream, rowParser);
StreamingOutput streamingOutput = new StreamingOutput() {
@Override
public void write(OutputStream output) throws IOException, WebApplicationException {
// TODO callback for progress updates as portoflio is copied
copier.copy(portfolioReader, portfolioWriter);
output.write("Upload complete".getBytes());
}
};
return Response.ok(streamingOutput).build();
}