Unfortunately not... `clazz` is not an instance of `CSRFErrorHandler`, it is a `Class[CSRFErrorHandler]`, and:

```scala
clazz match {
  case errorHandler: Class[CSRFErrorHandler] => ...
}
```

doesn't work due to type erasure.