if (bmi == null) {
// we could've started introspecting now but the fact no bean info
// is available indicates that the one created at start up has been
// lost and hence it is 500
LOG.warning("Bean parameter info is not available");
throw new InternalServerErrorException();
}
Object instance;
try {
instance = ClassLoaderUtils.loadClass(clazz.getName(), JAXRSUtils.class).newInstance();
} catch (Throwable t) {
throw new InternalServerErrorException(t);
}
JAXRSUtils.injectParameters(ori, bmi, instance, m);
InjectionUtils.injectContexts(instance, bmi, m);