Passing the security context to the ResourceObjectSerializer everywhere.