alignment.align();
AlignmentManager.Instance().addAlignmentToMap(alignmentId, alignment);
try {
// Add the visualization update
workspace.getFactory().replaceWorksheet(worksheetId, worksheetBeforeInvocation);
c.add(new ReplaceWorksheetUpdate(worksheetId, worksheetBeforeInvocation));
c.add(new AlignmentSVGVisualizationUpdate(worksheetId, alignment));
c.append(WorksheetUpdateFactory.createRegenerateWorksheetUpdates(worksheetId, getSuperSelection(workspace)));
c.add(new SemanticTypesUpdate(wk, worksheetId, alignment));
} catch (Exception e) {
logger.error("Error occured while populating the worksheet with service data!", e);