def METHOD_NAME(items, map):
    """Return the first space property that we find from the
    passed items
    """
    try:
        space_property = map["space"]
    except Exception:
        space_property = "space"
    for item in items:
        try:
            # does this naturally have a space property?
            return item.property(space_property)
        except Exception:
            pass
        try:
            # does the molecule container of this view have a space
            # property?
            return item.molecule().property(space_property)
        except Exception:
            pass
        try:
            # maybe this was a multi-molecule container?
            # In which case, ask the first item for its space property
            return item[0].molecule().property(space_property)
        except Exception:
            pass
    return None