to convert java object hierarchies <-> yaml