Start fixing Write interceptor issue.
Properly consider loaded second level entity's foreign keys.
Merge branch 'master' into RESTEasy3