public TridentModelBuilder(SR.Connection registryConn, SR.User user)
 {
     this.registryConnection = registryConn;
     activityComposer = new ActivityComposer(registryConnection, false);
     this.user = user;
 }
 /// <summary>
 /// Pretty straight forward method, it directly saves the model into
 /// trident's database.
 /// </summary>
 /// <param name="tridentWFModel">The trident model which we want to save.</param>
 public void CommitWorkflowToTridentDB(DM.TridentWorkflowModel tridentWFModel)
 {
     ActivityComposer activityComposer = new ActivityComposer(registryConnection, false);
     WorkflowComposer tridentComposer = new WorkflowComposer(registryConnection, activityComposer);
     tridentComposer.SaveWorkflowInRegistry(tridentWFModel, references, TridentAuthentication.LoggedUserInUserName);
 }