customerAB_property.acc = generalAccount;
customerAB_property.bGeneral = general;
Constructor constructor = new Constructor();
Representer representer = new Representer();
Tag generalAccountTag = new Tag("!GA");
constructor
.addTypeDescription(new TypeDescription(GeneralAccount.class, generalAccountTag));
representer.addClassTag(GeneralAccount.class, generalAccountTag);
Yaml yaml = new Yaml(constructor, representer);
String dump = yaml.dump(customerAB_property);
// System.out.println(dump);
CustomerAB_Property parsed = (CustomerAB_Property) yaml.load(dump);