private static BaseTypeConverter lookupTypeConverter(Class type) {
        BaseTypeConverter converter = (BaseTypeConverter)TYPE_CONVERTERS.get(type);
        if(converter == null) {
            String msg = "Could not find a TypeConverter for converting a String to an object of type \"" +
                (type != null ? type.getName() : null) + "\"";
            TypeConverterNotFoundException tcn = new TypeConverterNotFoundException(msg);

            if(type == null)
                msg = Bundle.getErrorString("TypeUtils_nullType");
            else
                msg = Bundle.getErrorString("TypeUtils_noConverterForType", new Object[]{type.getName()});
            tcn.setLocalizedMessage(msg);
            LOGGER.error(msg);

            throw tcn;
        }

        return converter;
    }
private static BaseTypeConverter lookupTypeConverter ( Class type ) { BaseTypeConverter converter = ( BaseTypeConverter ) TYPE_CONVERTERS . get ( type ) ; if ( converter == null ) { String msg = "Could not find a TypeConverter for converting a String to an object of type \"" + ( type != null ? type . getName ( ) : null ) + "\"" ; TypeConverterNotFoundException tcn = new TypeConverterNotFoundException ( msg ) ; if ( type == null ) msg = Bundle . getErrorString ( "TypeUtils_nullType" ) ; else msg = Bundle . getErrorString ( "TypeUtils_noConverterForType" , new Object [ ] { type . getName ( ) } ) ; tcn . setLocalizedMessage ( msg ) ; LOGGER . error ( msg ) ; throw tcn ; } return converter ; }
Internal method used to lookup a {@link BaseTypeConverter}.

@param type the target conversion type
@return a {@link BaseTypeConverter} to use for conversion
@throws TypeConverterNotFoundException if a TypeConverter for the target type can not be found.