Would Configuration#setClass(...) be appropriate here?