public static Object getByPath ( Object target , List < String > path ) { Object obj = target ; for ( String field : path ) { if ( obj == null ) { return null ; } obj = evaluate ( obj , trimType ( field ) ) ; } return obj ; }
Evaluates the given path expression on the given object and returns the object found .