def _get_key(class_reference, property_name):
    """Get the key for the given class and property name."""
    if not hasattr(class_reference, '__deserialize_key_map__'):
        return property_name
    return class_reference.__deserialize_key_map__.get(property_name,
        property_name)
