Selection of configuration elements for template