while (resources.hasNext()) {
final Resource resource = resources.next();
if (FileResource.class.isInstance(resource)) {
final FileResource fr = FileResource.class.cast(resource);
try {
final Field field = FileResource.class.getDeclaredField("file");
field.setAccessible(true);
list.add(File.class.cast(field.get(fr)).toURI().toURL());
} catch (final Exception e) {