if (write) {
// Create a portfolio writer to persist imported positions, trades and securities to the OG masters
return new MasterTimeSeriesWriter(_htsMaster);
} else {
// Create a dummy portfolio writer to pretty-print instead of persisting
return new DummyTimeSeriesWriter();
}
}