protected < T > T convert ( final String value , final Class < T > type ) { Assert . notNull ( type , "The Class type to convert the String value to cannot be null!" ) ; if ( getConversionService ( ) . canConvert ( String . class , type ) ) { return getConversionService ( ) . convert ( value , type ) ; } throw new ConversionException ( String . format ( "Cannot convert String value (%1$s) into a value of type (%2$s)!" , value , type . getName ( ) ) ) ; }
Converts the configuration setting property value into a value of the specified type .