def __getattribute__(self, name) :
     _fields = Document.__getattribute__(self, '_fields')
     if name in _fields:
         if isinstance(_fields[name], JSONObjectField) or \
             isinstance(_fields[name], JSONListField):
             return FragmentProxy(self[name])
         return self[name].value
     return Document.__getattribute__(self, name)
 def __getattribute__(self, name):
     _fields = Document.__getattribute__(self, '_fields')
     if name in _fields:
         if isinstance(_fields[name], JSONObjectField) or \
             isinstance(_fields[name], JSONListField):
             return FragmentProxy(self[name])
         return self[name].value
     return Document.__getattribute__(self, name)