public static void exportResources(final ResourceLoader resourceLoader, final File parent,
                                       final List<String> locationPatterns) {
        val resourcePatternResolver = ResourcePatternUtils.getResourcePatternResolver(resourceLoader);
        locationPatterns.forEach(pattern -> {
            val resources = FunctionUtils.doUnchecked(() -> resourcePatternResolver.getResources(pattern));
            Arrays.stream(resources).forEach(resource -> exportClasspathResourceToFile(parent, resource));
        });
    }
Export resources.

@param resourceLoader   the resource loader
@param parent           the parent
@param locationPatterns the location patterns
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/ResourceUtils.java