/** * Get the value from the source entity. If at any point the chaining results in a null value. The * chaining should end and return <code>null</code>. * * @param fromEntity the entity on which the getter should operate. * @return <code>null</code> if at any point in the chaining a property returned <code>null</code> * or the value of the nested property. */ public Object getValue(Object fromEntity) throws IllegalAccessException, InvocationTargetException { Object propertyValue = getter.invoke(fromEntity); return propertyValue == null ? null : nestedWriter.getValue(propertyValue); }