fix code snippet

replace setDefaultHandler()  by setHandler()