private String getApplicationId(ConfigurableEnvironment environment) {
   String name = environment.resolvePlaceholders(this.name);
   String index = environment.resolvePlaceholders(INDEX_PATTERN);
   String profiles = StringUtils.arrayToCommaDelimitedString(environment.getActiveProfiles());
   if (StringUtils.hasText(profiles)) {
     name = name + ":" + profiles;
   }
   if (!"null".equals(index)) {
     name = name + ":" + index;
   }
   return name;
 }
 @Override
 public void postProcessEnvironment(
     ConfigurableEnvironment environment, SpringApplication application) {
   String json =
       environment.resolvePlaceholders("${spring.application.json:${SPRING_APPLICATION_JSON:}}");
   if (StringUtils.hasText(json)) {
     processJson(environment, json);
   }
 }