}
}
final Constructor<?> providerConstructor = WrapperUtil
.findJaxRsConstructor(jaxRsProviderClass, "provider");
ParameterList parameters;
try {
parameters = new ParameterList(providerConstructor, tlContext,
false, allProviders, extensionBackwardMapping, false,
logger, true);
} catch (IllegalTypeException ite) {
throw new IllegalConstrParamTypeException(ite);
}
try {
final Object[] args = parameters.get();
return WrapperUtil.createInstance(providerConstructor, args);
} catch (NoMessageBodyReaderException e) {
// should be not possible here
throw new IllegalArgumentException(
"Could not instantiate the Provider, class "