private static TUnion<?, ?> createUnion(
Class<?> unionType,
TFieldIdEnum setField,
Object fieldValue) throws IllegalAccessException, InstantiationException {
TUnion union = (TUnion) unionType.newInstance();
union.setFieldValue(setField, fieldValue);
return union;
}