private static void invokeSetter ( final Object bean , final Method setMethod , final Object fieldValue ) { try { setMethod . setAccessible ( true ) ; setMethod . invoke ( bean , fieldValue ) ; } catch ( final Exception e ) { throw new SuperCsvReflectionException ( String . format ( "error invoking method %s()" , setMethod . getName ( ) ) , e ) ; } }
Invokes the setter on the bean with the supplied value .