public Configs getConfigs() {
        Configs configs = null;
        InputStream is = settingsFacade.getRawConfig(SMS_CONFIGS_FILE_NAME);
        String errorMessage = null;
        if (is == null) {
            throw new JsonIOException(SMS_CONFIGS_FILE_NAME + " missing");
        }
        try {
            String jsonText = IOUtils.toString(is);
            Gson gson = new Gson();
            configs = gson.fromJson(jsonText, Configs.class);
        } catch (Exception e) {
            errorMessage = "Might you have a malformed " + SMS_CONFIGS_FILE_NAME + " file? " + e.toString();
        } finally {
            try {
                is.close();
            } catch (IOException e) {
                // Ignore IO exception, what are we going to do anyway?
                logger.error("IOException when closing config file {}: {}", SMS_CONFIGS_FILE_NAME, e);
            }
        }
        if (errorMessage != null) {
            throw new JsonIOException(errorMessage);
        }
        return configs;
    }
public Configs getConfigs() {
        Configs configs = null;
        InputStream is = settingsFacade.getRawConfig(SMS_CONFIGS_FILE_NAME);
        String errorMessage = null;
        if (is == null) {
            throw new JsonIOException(SMS_CONFIGS_FILE_NAME + " missing");
        }
        try {
            String jsonText = IOUtils.toString(is);
            Gson gson = new Gson();
            configs = gson.fromJson(jsonText, Configs.class);
        } catch (Exception e) {
            errorMessage = "Might you have a malformed " + SMS_CONFIGS_FILE_NAME + " file? " + e.toString();
        } finally {
            try {
                is.close();
            } catch (IOException e) {
               
                logger.error("IOException when closing config file {}: {}", SMS_CONFIGS_FILE_NAME, e);
            }
        }
        if (errorMessage != null) {
            throw new JsonIOException(errorMessage);
        }
        return configs;
    }
public configs getconfigs() { configs configs = null; inputstream is = settingsfacade.getrawconfig(sms_configs_file_name); string errormessage = null; if (is == null) { throw new jsonioexception(sms_configs_file_name + " missing"); } try { string jsontext = ioutils.tostring(is); gson gson = new gson(); configs = gson.fromjson(jsontext, configs.class); } catch (exception e) { errormessage = "might you have a malformed " + sms_configs_file_name + " file? " + e.tostring(); } finally { try { is.close(); } catch (ioexception e) { logger.error("ioexception when closing config file {}: {}", sms_configs_file_name, e); } } if (errormessage != null) { throw new jsonioexception(errormessage); } return configs; }