domain rules based on templates (rules from other domains), RT#7514