cloning schema.tree while generating mapping, it caused mutation in schema & interfered with other plugins