template registry
CLDIDE-2164 Implemented factory 2.1
warn instead of error to avoid sending emails
Improve template registartion