{
try
{
Object delegate = ResteasyProviderFactory.getContextData(type);
if (delegate == null)
throw new LoggableFailure("Unable to find contextual data of type: " + type.getName());
return method.invoke(delegate, objects);
}
catch (IllegalAccessException e)
{
throw new RuntimeException(e);