public void ResolveParent(string targetPath, string targetFileName) { var resolver = new PathResolver(this.currentElement, this.uriService, string.IsNullOrEmpty(targetPath) ? @"\" : targetPath, string.IsNullOrEmpty(targetFileName) ? this.currentElement.InstanceName : targetFileName); resolver.Resolve(); if (string.IsNullOrEmpty(targetPath)) { ParentItem = GetUnfoldParent(this.currentElement, theTemplate.Type); } else { ParentItem = solution.FindOrCreate(resolver.Path); } this.FileName = resolver.FileName; }