Method getter = getGetterMethod(mainFieldName);
result = getter.invoke(vo, null);
return new BeanMapper(getBeanFieldType(mainFieldName)).getBeanFieldValue(result, subFields);
}
catch (InvocationTargetException e) {
throw new NestableRuntimeException("There was a problem getting field '" + fieldName + "' value", e);
}
catch (IllegalAccessException e) {
throw new NestableRuntimeException("There was a problem getting field '" + fieldName + "' value", e);
}
}
Object result = null;
try {
Method getter = getGetterMethod(fieldName);
if (getter != null) {
result = getter.invoke(vo, null);
}
}
catch (InvocationTargetException e) {
throw new NestableRuntimeException("There was a problem getting field '" + fieldName + "' value", e);
}
catch (IllegalAccessException e) {
throw new NestableRuntimeException("There was a problem getting field '" + fieldName + "' value", e);
}
return result;
}