'Return a frozen ResourceDefinition with stored property values.
The returned definition will contain the property values read from the
database, and will have all intrinsic functions resolved (note that
this makes it useless for calculating dependencies).'

def frozen_definition(self):

    if (self._stored_properties_data is not None):
        args = {'properties': self._stored_properties_data}
    else:
        args = {}
    return self.t.freeze(**args)
