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

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