The court shall appoint an amicus attorney or attorney ad litem to represent the interest of the petitioner at the hearing.