It looks like ResourceContainer needs to support the allow_message_fields flag, which should be False in this case.