public Activity Resolve(string id) { Fx.Assert(id != null, "id should not be null."); Activity activityRoot = null; if (this.workflowService != null) { activityRoot = this.workflowService.GetWorkflowRoot(); } else { activityRoot = this.activity; } return(ActivityValidationServices.Resolve(activityRoot, id)); }