Replace HandlerContext::class with class name for PHP 5.4 compatibility