A man is being hugged by his family members in court.