public Object convert ( Class < ? > type , String origin ) throws ConversionException { if ( origin == null ) { return convertNullValue ( type ) ; } Converter converter = find ( type ) ; try { return converter . convert ( origin ) ; } catch ( Exception e ) { throw new ConversionException ( String . format ( "Could not convert string <%s> to type <%s>" , origin , type ) , e ) ; } }
Convert given string to type .