class ResponseTransformerConfig {
    public static final String CONFIG_NAME = "response-transformer";
    private static final Logger logger = LoggerFactory.getLogger(ResponseTransformerConfig.class);

    private static final String ENABLED = "enabled";
    private static final String REQUIRED_CONTENT = "requiredContent";
    private static final String APPLIED_PATH_PREFIXES = "appliedPathPrefixes";

    private Map<String, Object> mappedConfig;
    private Config config;
    private boolean enabled;
    private boolean requiredContent;
    List<String> appliedPathPrefixes;

    private ResponseTransformerConfig() {
        this(CONFIG_NAME);
    }

    private ResponseTransformerConfig(String configName) {
        config = Config.getInstance();
        mappedConfig = config.getJsonMapConfigNoCache(configName);
        setConfigData();
        setConfigList();
    }

    public static ResponseTransformerConfig load() {
        return new ResponseTransformerConfig();
    }

    public static ResponseTransformerConfig load(String configName) {
        return new ResponseTransformerConfig(configName);
    }

    public void reload() {
        mappedConfig = config.getJsonMapConfigNoCache(CONFIG_NAME);
        setConfigData();
        setConfigList();
    }


    public boolean isEnabled() {
        return enabled;
    }
    public boolean isRequiredContent() { return requiredContent; }
    public List<String> getAppliedPathPrefixes() {
        return appliedPathPrefixes;
    }

    public Map<String, Object> getMappedConfig() {
        return mappedConfig;
    }

    private void setConfigData() {<FILL_FUNCTION_BODY>}

    private void setConfigList() {
        if (mappedConfig.get(APPLIED_PATH_PREFIXES) != null) {
            Object object = mappedConfig.get(APPLIED_PATH_PREFIXES);
            appliedPathPrefixes = new ArrayList<>();
            if(object instanceof String) {
                String s = (String)object;
                s = s.trim();
                if(logger.isTraceEnabled()) logger.trace("s = " + s);
                if(s.startsWith("[")) {
                    // json format
                    try {
                        appliedPathPrefixes = Config.getInstance().getMapper().readValue(s, new TypeReference<List<String>>() {});
                    } catch (Exception e) {
                        throw new ConfigException("could not parse the appliedPathPrefixes json with a list of strings.");
                    }
                } else {
                    // comma separated
                    appliedPathPrefixes = Arrays.asList(s.split("\\s*,\\s*"));
                }
            } else if (object instanceof List) {
                List prefixes = (List)object;
                prefixes.forEach(item -> {
                    appliedPathPrefixes.add((String)item);
                });
            } else {
                throw new ConfigException("appliedPathPrefixes must be a string or a list of strings.");
            }
        }
    }

}

        Object object = mappedConfig.get(ENABLED);
        if(object != null) {
            if(object instanceof String) {
                enabled = Boolean.parseBoolean((String)object);
            } else if (object instanceof Boolean) {
                enabled = (Boolean) object;
            } else {
                throw new ConfigException("enabled must be a boolean value.");
            }
        }
        object = mappedConfig.get(REQUIRED_CONTENT);
        if(object != null) {
            if(object instanceof String) {
                requiredContent = Boolean.parseBoolean((String)object);
            } else if (object instanceof Boolean) {
                requiredContent = (Boolean) object;
            } else {
                throw new ConfigException("requiredContent must be a boolean value.");
            }
        }
    
<no_super_class>