Map<String, ConfigurationTemplate> templates = def.getTemplates();
ConfigurationTemplate template = (ConfigurationTemplate) question(templates, null, "template", "Select from the available templates");
return editConfiguration(def, template == null ? null : template.createConfiguration());
}
public Configuration editExistingConfiguration(ConfigurationDefinition def, Configuration config) throws IOException, QuitException {
List<PropertyGroupDefinition> groups = new ArrayList<PropertyGroupDefinition>(def.getGroupDefinitions());