'Load dynamic properties from entity.
Loads attributes which are not defined as part of the entity in
to the model instance.
Args:
entity: Entity which contain values to search dyanmic properties for.'

@classmethod
def _load_entity_values(cls, entity):

    entity_values = {}
    for prop in cls.properties().values():
        if (prop.name in entity):
            try:
                value = entity[prop.name]
            except KeyError:
                entity_values[prop.name] = []
            else:
                if entity.is_projection():
                    value = prop.make_value_from_datastore_index_value(value)
                else:
                    value = prop.make_value_from_datastore(value)
                entity_values[prop.name] = value
    return entity_values
