public T get ( Object source ) { try { if ( ! method . isAccessible ( ) ) { method . setAccessible ( true ) ; } @ SuppressWarnings ( "unchecked" ) T value = ( T ) method . invoke ( source ) ; return value ; } catch ( IllegalAccessException illegalAccessException ) { return null ; } catch ( IllegalArgumentException illegalArgumentException ) { return null ; } catch ( InvocationTargetException invocationTargetException ) { return null ; } }
Get value from source object using getter method