Configuration originalTemplate = templates.get(selectedTemplateName).getConfiguration();
// TODO this should be handled elsewhere
// currently this is not a copy so we have to clone it so we dont go around updating the original one
// associated with this configurtion definition
template = originalTemplate.deepCopy();
// populate the empty elements in the template with
ConfigurationUtility.normalizeConfiguration(template, serviceType.getResourceConfigurationDefinition());
}