class UrlUtil {

    private UrlUtil() {}

    public static Object tryCreateURL(String serialized) {<FILL_FUNCTION_BODY>}

}

        Object object;
        try {
            object = new URL(serialized);
        } catch (final MalformedURLException ex) {
            throw new IllegalArgumentException(String.format(
                "Specified URL '%s' is malformed.", serialized
            ), ex);
        }
        return object;
    
<no_super_class>