'Return the resource data for this resource.
Use methods data_set and data_delete to modify the resource data
for this resource.
:returns: a dict representing the resource data for this resource.'

def data(self):

    if ((self._data is None) and (self.id is not None)):
        try:
            self._data = resource_data_objects.ResourceData.get_all(self)
        except exception.NotFound:
            pass
    return (self._data or {})
