A Bangor man murdered by his cousin's partner was subjected to a "brutal and sustained attack" as he lay asleep with "no chance to defend himself", a court has heard.