@ Override public < T > T asObject ( String string , Class < T > valueType ) throws ConverterException { // at this point value type is guaranteed to be URL try { return ( T ) new URL ( string ) ; } catch ( MalformedURLException e ) { throw new ConverterException ( e . getMessage ( ) ) ; } }
Convert URL string representation into URL instance .