Implement handler

* Replace deprecated interface to new one
* Add getHandler to plugin