use env.subject.constructor instead of @model

@jouh does this look good to you?