public Object convert ( String property , Object value ) { if ( value == null ) { return defaultMap . get ( property ) ; } Class < ? > type = getType ( property ) ; if ( type == null ) { throw new IllegalArgumentException ( property + " unknown" ) ; } return ConvertUtil . convertTo ( value , type ) ; }
Tries to convert object to model type