serializedResources property
Live hand-built resources already serialized into document this pass, keyed by instance, so a geometry or material shared by several nodes is emitted once and referenced everywhere.
Implementation
final Map<Object, LocalId> serializedResources = <Object, LocalId>{};