make class of Session model in SessionHeader middleware in Identity plugin overrideable