Ryan Hamer, an Ottawa defense attorney and assistant public defender, was appointed to replace Tim Cappellini, who recently retired after 17 years as public defender.