public static VmTemplate ToVirtualTemplate(this ConvergedTemplate template, string isolationTag = "") { TemplateUtility tu = new TemplateUtility(template.Detail); tu.Name = template.Name; tu.Networks = template.Networks ?? "lan"; tu.Iso = template.Iso; tu.IsolationTag = isolationTag.HasValue() ? isolationTag : template.WorkspaceGlobalId ?? Guid.Empty.ToString(); tu.Id = template.Id.ToString(); tu.UseUplinkSwitch = template.WorkspaceUseUplinkSwitch; tu.AddGuestSettings(template.Guestinfo ?? ""); return(tu.AsTemplate()); }