The <layer/> node will form the layer in memory, so the purpose of the yanera variable is access to the yanera_parameters. The layer has already been linked into the list of layers in the appropriate model.