public static void setField(Field field, Object object, Object value) {
try {
field.setAccessible(true);
field.set(object, value);
} catch (IllegalArgumentException e) {
throw new FixFlowException("Could not set field " + field.toString(), e);
} catch (IllegalAccessException e) {
throw new FixFlowException("Could not set field " + field.toString(), e);
}
}