Or just one line:

    #set ($discard = $parameters.add($services.model.resolveDocument($owner).toString()))