_referenceDataProvider,
dataProvider,
dataFields);
final PortfolioWriter portfolioWriter =
new MasterPortfolioWriter(portfolioName, _portfolioMaster, _positionMaster, _securityMaster, false, false, true);
SheetFormat format = getFormatForFileName(fileName);
RowParser rowParser = new ExchangeTradedRowParser(_securityProvider);
final PortfolioReader portfolioReader = new SingleSheetSimplePortfolioReader(format, fileStream, rowParser);
StreamingOutput streamingOutput = new StreamingOutput() {
@Override
public void write(OutputStream output) throws IOException, WebApplicationException {