} else {
throw new OpenGammaRuntimeException("Could not create a row parser for security type " + securityType);
}
// }
} else if (SheetFormat.of(filename) == SheetFormat.ZIP) {
return new ZippedPortfolioWriter(filename, includeTrades);
} else {
throw new OpenGammaRuntimeException("Input filename should end in .CSV, .XLS or .ZIP");
}
} else {