public void writeToFile(Path configPath) {
        try {
            String configString = yamlMapper.writeValueAsString(this);
            Files.write(configPath, configString.getBytes());
        } catch (IOException e) {
            throw new RuntimeException("Failed to write config to file: " + configPath.toString());
        }
    }
Writes this configuration object to the file path provided as parameter.
ache/src/main/java/achecrawler/config/Configuration.java