private void Restart() { // Restarts the program for the current model ModelMetadata modelMetadata = dependencyInjection.Resolve <ModelMetadata>(); StartInstanceService startInstanceService = new StartInstanceService(); startInstanceService.StartInstance(modelMetadata.ModelFilePath); }