generateViewStatusReport(portfolioId, option);
}
private void generateViewStatusReport(final UniqueId portfolioId, final ViewStatusOption option) {
ViewStatusCalculationWorker calculationWorker = new ViewStatusCalculationWorker(getToolContext(), portfolioId, option);
ViewStatusResultAggregator resultAggregator = calculationWorker.run();
ViewStatusResultProducer resultProducer = new ViewStatusResultProducer();
String statusResult = resultProducer.statusResult(resultAggregator, option.getFormat(), option.getAggregateType());
try {
File outputFile = option.getOutputFile();