void exportToMapProperty ( Object target , String property , Object result ) { @ SuppressWarnings ( "unchecked" ) Map < Object , Object > map = ( Map < Object , Object > ) target ; if ( result == null ) { map . remove ( property ) ; } else { map . put ( property , result ) ; } }
Export the result into a Map .