return new Command() {
public void execute() {
loading[0] = false;
//When model is saved update the package view if it is opened.
Command checkInAndArchiveCommand = createCheckInAndArchiveCommandForRuleViewer( ruleAsset );
RuleViewerWrapper ruleViewer = new RuleViewerWrapper( ruleAsset,
createEditEvent(),
createCloseCommandForRuleViewer( uuid ),
ruleAsset.metaData.format.equals( AssetFormats.MODEL )?checkInAndArchiveCommand:null,
ruleAsset.metaData.format.equals( AssetFormats.MODEL )?checkInAndArchiveCommand:null
);