getOrCreate

fun getOrCreate(node: Node, eResource: Resource): EObject

If a corresponding EObject for the node has been already created, then it is returned. Otherwise the EObject is created and returned. The same EObject is also stored and associated with the Node, so that future calls to this method will return that EObject.