hunk.code_window: import java.net.URLEncoder;
   import java.nio.charset.StandardCharsets;
   import java.util.HashMap;
   import java.util.Map;
   import java.util.Optional;
   import java.util.Set;
   import java.util.UUID;
  
hunk.labels: keep keep add keep keep keep keep
hunk.after_edit: import java.util.HashSet;
  
hunk.file_path: app/server/appsmith-server/src/main/java/com/appsmith/server/services/UserServiceImpl.java
hunk.type: add
file: package com.appsmith.server.configurations;
  
  import com.segment.analytics.Analytics;
  import org.springframework.beans.factory.annotation.Value;
  import org.springframework.context.annotation.Bean;
  import org.springframework.context.annotation.Configuration;
  
  @Configuration
  public class SegmentConfig {
      @Value("${segment.writeKey}")
      private String writeKey;
  
      @Bean
      public Analytics analyticsRunner() {
          return Analytics.builder(writeKey).build();
      }
  }
  