class ServiceConfig {
    private static final Logger logger = LoggerFactory.getLogger(ServiceConfig.class);

    public static final String CONFIG_NAME = "service";
    public static final String SINGLETONS = "singletons";
    private List<Map<String, Object>> singletons;
    private Config config;
    private Map<String, Object> mappedConfig;

    private ServiceConfig() {
        this(CONFIG_NAME);
    }

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

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

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

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

    public List<Map<String, Object>> getSingletons() {
        return singletons;
    }

    public void setConfigData() {<FILL_FUNCTION_BODY>}
}

        if(mappedConfig.get(SINGLETONS) instanceof String) {
            // the json string is supported here.
            String s = (String)mappedConfig.get(SINGLETONS);
            if(logger.isTraceEnabled()) logger.trace("singletons = " + s);
            singletons = JsonMapper.string2List(s);
        } else if (mappedConfig.get(SINGLETONS) instanceof List) {
            singletons = (List<Map<String, Object>>)mappedConfig.get(SINGLETONS);
        } else {
            if(logger.isInfoEnabled()) logger.info("singletons missing or wrong type.");
            // ignore this situation as a particular application might not have any injections.
        }
    
<no_super_class>