oldCommandsArray.put(workspace.getCommandHistory().getCommandJSON(workspace, refined));
worksheet.getMetadataContainer().getWorksheetProperties().setPropertyValue(
Property.oldCommandHistory, oldCommandsArray.toString());
}
CommandHistoryUtil historyUtil = new CommandHistoryUtil(history.getCommandsFromWorksheetId(worksheetId), workspace, worksheetId);
historyUtil.consolidateHistory();
if (!oldCommands.equals(historyUtil.getCommands())) {
uc.append(historyUtil.replayHistory());
uc.removeUpdateByClass(HistoryAddCommandUpdate.class);
uc.removeUpdateByClass(InfoUpdate.class);
uc.removeUpdateByClass(ErrorUpdate.class);