public static boolean isJarResource(final Resource resource) {
        try {
            return (resource instanceof final ClassPathResource cp && cp.getPath().startsWith("jar:"))
                || "jar".equals(resource.getURI().getScheme());
        } catch (final Exception e) {
            LOGGER.trace(e.getMessage(), e);
        }
        return false;
    }
Is jar resource ?.

@param resource the resource
@return true/false
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/ResourceUtils.java