addHandler
Add a new query handler.
Return
True if the handler is added successfully.
Parameters
handler
The handler to be added.
first
If true the handler will be added as the first handler, otherwise it will be added as the last handler.