//noinspection unchecked
Collection<URI> webURIs =
(Collection<URI>) context.getAttribute("com.sun.faces.webresources");
if (isDevModeEnabled() && webURIs != null && !webURIs.isEmpty()) {
webResourcePool = new ScheduledThreadPoolExecutor(1, new MojarraThreadFactory("WebResourceMonitor"));
webResourcePool.scheduleAtFixedRate(new WebConfigResourceMonitor(context, webURIs),
2000,
2000,
TimeUnit.MILLISECONDS);
}