@Override
public UpdateContainer doIt(Workspace workspace) throws CommandException {
Worksheet worksheet = workspace.getWorksheet(worksheetId);
CSVFileExport csvFileExport = new CSVFileExport(worksheet);
MDBFileExport mdbFileExport = new MDBFileExport(worksheet);
try {
final String csvFileName = csvFileExport.publishCSV();
if(csvFileName == null)
return new UpdateContainer(new ErrorUpdate(
"No data to export! Have you aligned the worksheet?"));
final String fileName = mdbFileExport.publishMDB(csvFileName);
return new UpdateContainer(new AbstractUpdate() {
@Override
public void generateJson(String prefix, PrintWriter pw,
VWorkspace vWorkspace) {