What about

    <parameter name="id">expr(object.getId())</parameter>