delegate = type.newInstance();
}
}
catch (Exception e)
{
throw new ContainerException("Could not create instance of [" + type.getName() + "] through reflection.", e);
}
return Proxies.enhance(addon.getClassLoader(), delegate, new ClassLoaderInterceptor(addon.getClassLoader(),
delegate));
}