Construct complete YAML document. Call the second step in case of recursive structures. At the end cleans all the state.
Java instance
root Node