} catch (IllegalAccessException e) {\r
e.printStackTrace();\r
} catch (InvocationTargetException e) {\r
- e.printStackTrace();\r
+ e.getCause().printStackTrace();\r
}\r
}\r
\r
} catch (IllegalAccessException e) {\r
throw new RuntimeException("Failed to get property '" + propertyName + "' for " + getClass().getName(), e);\r
} catch (InvocationTargetException e) {\r
- throw new RuntimeException("Failed to get property '" + propertyName + "' for " + getClass().getName(), e);\r
+ throw new RuntimeException("Failed to get property '" + propertyName + "' for " + getClass().getName(), e.getCause());\r
}\r
\r
} else {\r
} catch (IllegalAccessException e) {\r
throw new RuntimeException("Failed to set property '" + fieldName + "' for " + getClass().getName(), e);\r
} catch (InvocationTargetException e) {\r
- throw new RuntimeException("Failed to set property '" + fieldName + "' for " + getClass().getName(), e);\r
+ throw new RuntimeException("Failed to set property '" + fieldName + "' for " + getClass().getName(), e.getCause());\r
}\r
}\r
}\r