String alignmentId = AlignmentManager.Instance().constructAlignmentId(workspace.getId(), worksheetId);
Alignment alignment = initialAlignment;
alignment.setGraph(initialGraph);
if(!this.isExecutedInBatch())
alignment.align();
AlignmentManager.Instance().addAlignmentToMap(alignmentId, alignment);
try {
// Add the visualization update
workspace.getFactory().replaceWorksheet(worksheetId, worksheetBeforeInvocation);
c.add(new ReplaceWorksheetUpdate(worksheetId, worksheetBeforeInvocation));