class StringToURLConverter extends AbstractGenericConverter<String, URL> {

    @Override
    public URL convert(String source) {
        try {
            return new URL(source);
        } catch (MalformedURLException e) {
            throw new ConverterException(source, getTargetTypeToken().getRawType(), e);
        }
    }

}