礼記
The "Liji" ("Book of Rites") proclaimed that the mourner's type of relationship with the deceased dictated where the death wails should take place: for your brother it should take place in the ancestral temple; for your father's friend, opposite the great door of the ancestral temple; for your friend, opposite the main door of their private lodging; for an acquaintance, out in the countryside.