private void injectResource(Saga saga, Method setterMethod, Object resource) {
try {
ReflectionUtils.ensureAccessible(setterMethod);
setterMethod.invoke(saga, resource);
} catch (IllegalAccessException e) {
throw new FixtureExecutionException("An exception occurred while trying to inject a resource", e);
} catch (InvocationTargetException e) {
throw new FixtureExecutionException("An exception occurred while trying to inject a resource", e);
}
}