public static RuleRepositoryDefBase GetDef(this Guid guid, RuleApplicationDef ruleAppDef)
 {
     return(ruleAppDef.LookupItem(guid));
 }