Keeping a reference to java.lang.Class may lead to ClassLoader leaks. Better use Weak/SoftReference or Wicket's IClassProvider.