Perhaps put a class check here, to give a better error message, if the class doesn't implement RepositoryManagerBuilder.
So we don't just fail with ClassCastException out-of-the-blue.