// Path: src/main/java/com/thoughtworks/go/strongauth/util/MapBuilder.java
// public class MapBuilder<K, V> {
//     private final HashMap<K, V> map;
// 
//     public static <KeyType, ValueType> MapBuilder<KeyType, ValueType> create() {
//         return new MapBuilder<>();
//     }
// 
//     private MapBuilder() {
//         map = new HashMap<>();
//     }
// 
//     public MapBuilder<K, V> add(K initialKey, V valueForInitialKey) {
//         map.put(initialKey, valueForInitialKey);
//         return this;
//     }
// 
//     public Map<K, V> build() {
//         return map;
//     }
// }
// 
// Path: src/main/java/com/thoughtworks/go/strongauth/util/Json.java
// public static String toJson(Object anything) {
//     return gson.toJson(anything);
// }
// 
// Path: src/main/java/com/thoughtworks/go/strongauth/util/Json.java
// public static Map toMap(String jsonValue) {
//     return gson.fromJson(jsonValue, Map.class);
// }
// 
// Path: src/main/java/com/thoughtworks/go/strongauth/util/MapBuilder.java
// public static <KeyType, ValueType> MapBuilder<KeyType, ValueType> create() {
//     return new MapBuilder<>();
// }
// 
// Path: src/main/java/com/thoughtworks/go/strongauth/util/Resources.java
// public static String get(String resourceLocation) {
//     try {
//         return IOUtils.toString(Resources.class.getResourceAsStream(resourceLocation), "UTF-8");
//     } catch (Exception e) {
//         throw new RuntimeException("Failed to get template from " + resourceLocation);
//     }
// }


import com.thoughtworks.go.plugin.api.request.GoPluginApiRequest;
import com.thoughtworks.go.plugin.api.response.DefaultGoPluginApiResponse;
import com.thoughtworks.go.plugin.api.response.GoPluginApiResponse;
import com.thoughtworks.go.strongauth.util.MapBuilder;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import static com.thoughtworks.go.strongauth.util.Json.toJson;
import static com.thoughtworks.go.strongauth.util.Json.toMap;
import static com.thoughtworks.go.strongauth.util.MapBuilder.create;
import static com.thoughtworks.go.strongauth.util.Resources.get;
package com.thoughtworks.go.strongauth.handlers;





public class PluginSettingsHandler {

    public static final String PLUGIN_CONFIG_PASSWORD_FILE_PATH = "PASSWORD_FILE_PATH";
    public static final String DISPLAY_NAME_PASSWORD_FILE_PATH = "Password file path";

    public static Handler getConfiguration() {
        return new Handler() {
            @Override
            public GoPluginApiResponse call(GoPluginApiRequest request) {
// Path: src/main/java/com/thoughtworks/go/strongauth/util/MapBuilder.java
// public class MapBuilder<K, V> {
//     private final HashMap<K, V> map;
// 
//     public static <KeyType, ValueType> MapBuilder<KeyType, ValueType> create() {
//         return new MapBuilder<>();
//     }
// 
//     private MapBuilder() {
//         map = new HashMap<>();
//     }
// 
//     public MapBuilder<K, V> add(K initialKey, V valueForInitialKey) {
//         map.put(initialKey, valueForInitialKey);
//         return this;
//     }
// 
//     public Map<K, V> build() {
//         return map;
//     }
// }
// 
// Path: src/main/java/com/thoughtworks/go/strongauth/util/Json.java
// public static String toJson(Object anything) {
//     return gson.toJson(anything);
// }
// 
// Path: src/main/java/com/thoughtworks/go/strongauth/util/Json.java
// public static Map toMap(String jsonValue) {
//     return gson.fromJson(jsonValue, Map.class);
// }
// 
// Path: src/main/java/com/thoughtworks/go/strongauth/util/MapBuilder.java
// public static <KeyType, ValueType> MapBuilder<KeyType, ValueType> create() {
//     return new MapBuilder<>();
// }
// 
// Path: src/main/java/com/thoughtworks/go/strongauth/util/Resources.java
// public static String get(String resourceLocation) {
//     try {
//         return IOUtils.toString(Resources.class.getResourceAsStream(resourceLocation), "UTF-8");
//     } catch (Exception e) {
//         throw new RuntimeException("Failed to get template from " + resourceLocation);
//     }
// }


// Path: src/main/java/com/thoughtworks/go/strongauth/handlers/PluginSettingsHandler.java
import com.thoughtworks.go.plugin.api.request.GoPluginApiRequest;
import com.thoughtworks.go.plugin.api.response.DefaultGoPluginApiResponse;
import com.thoughtworks.go.plugin.api.response.GoPluginApiResponse;
import com.thoughtworks.go.strongauth.util.MapBuilder;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import static com.thoughtworks.go.strongauth.util.Json.toJson;
import static com.thoughtworks.go.strongauth.util.Json.toMap;
import static com.thoughtworks.go.strongauth.util.MapBuilder.create;
import static com.thoughtworks.go.strongauth.util.Resources.get;

package com.thoughtworks.go.strongauth.handlers;





public class PluginSettingsHandler {

    public static final String PLUGIN_CONFIG_PASSWORD_FILE_PATH = "PASSWORD_FILE_PATH";
    public static final String DISPLAY_NAME_PASSWORD_FILE_PATH = "Password file path";

    public static Handler getConfiguration() {
        return new Handler() {
            @Override
            public GoPluginApiResponse call(GoPluginApiRequest request) {
                Map<Object, Object> configResponse = create()