'Fill in export_dict for an entity or model instance.
Args:
instance: Entity or model instance
export_dict: output dictionary.
bulkload_state: Passed bulkload state.'

def __run_export_transforms(self, instance, export_dict, bulkload_state):

    for transform in self._transformer_spec.property_map:
        if (transform.property == '__key__'):
            value = instance.key()
        elif self._transformer_spec.use_model_on_export:
            value = getattr(instance, transform.property, transform.default_value)
        else:
            value = instance.get(transform.property, transform.default_value)
        if transform.export:
            for prop in transform.export:
                self.__prop_to_dict(value, transform.property, prop, export_dict, bulkload_state)
        elif transform.external_name:
            self.__prop_to_dict(value, transform.property, transform, export_dict, bulkload_state)
