class Configuration {

    static void initConfiguration(String configFilePath) throws IOException {
        final File configFile = new File(configFilePath);
        if (!configFile.exists()) {
            throw new IllegalArgumentException("configuration file: " + configFilePath + " is not exists");
        }

        try {
            final Configuration configuration = new ObjectMapper(new YAMLFactory()).readValue(configFile, Configuration.class);
            if (configuration != null) {
                instance = configuration;
            }
        } catch (JsonParseException | JsonMappingException ex) {
            throw new IllegalArgumentException("configuration file: " + configFilePath
                    + " is not a legal YAML file or has invalid configurations", ex);
        }
    }

      Configuration();

}