import org.yaml.snakeyaml.Yaml;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Map;

public class ConfigLoader {
    public static Map<String, Object> loadConfig(String path) throws IOException {
        Yaml yaml = new Yaml();
        try (FileInputStream fis = new FileInputStream(path)) {
            return yaml.load(fis);
        }
    }
}
