//it shall be handled as if the wrapped exception was thrown
//by the resource method itself
if (cause instanceof ResourceMethodException) {
throw (ResourceMethodException) cause;
} else {
throw new ResourceMethodException(cause);
}
}
}
return methodReturnValue;
}