do {
templateName = String.format("%s-%s-%02d", curEnv.getEnvironmentName(), today, i++);
} while (configTemplates.contains(templateName));
}
CreateConfigurationTemplateResult result = getService().createConfigurationTemplate(
new CreateConfigurationTemplateRequest().withEnvironmentId(
curEnv.getEnvironmentId()).withTemplateName(
templateName).withApplicationName(curEnv.getApplicationName()));
getLog().info("Created config template " + templateName + " for environment " + curEnv.getEnvironmentId());