public static UrlResource newUrlResource(final String url) {
        try {
            return new UrlResource(url);
        } catch (final MalformedURLException e) {
            throw new TechnicalException(e);
        }
    }
<p>newUrlResource.</p>

@param url a {@link String} object
@return a {@link UrlResource} object
pac4j-core/src/main/java/org/pac4j/core/resource/SpringResourceHelper.java