public IReadOnlyItem Path(IConnection conn, string name) { var path = this.Relationships("Workflow Process Path").FirstOrDefault(i => i.Property("name").Value == name); if (path != null) return path; return conn.ItemByQuery(new Command(@"<Item type='Workflow Process Path' action='get'> <source_id>@0</source_id> <name>@1</name> </Item>", this.Id(), name)); }