private Yamls() {
}
public static Yaml newYaml(Set<Class<?>> yamlModel) {
Representer representer = new Representer();
for (Class<?> modelClas : yamlModel) {
representer.addClassTag(modelClas, Tag.MAP);
}
NaturalPropertyUtils propertyUtils = new NaturalPropertyUtils();
representer.setPropertyUtils(propertyUtils);
DumperOptions options = new DumperOptions();
options.setDefaultFlowStyle(FlowStyle.BLOCK);
return new org.yaml.snakeyaml.Yaml(