@ SuppressWarnings ( "unchecked" ) static < T > T getFieldValue ( Object target , String name ) throws IllegalAccessException , NoSuchFieldException , SecurityException { Field field = getDeclaredField ( target , name ) ; field . setAccessible ( true ) ; return ( T ) field . get ( target ) ; }
Get the value of the specified field from the supplied object .