ExternalResource resource = new ExternalResource(folder);
if (resource.getFile().isDirectory()) {
if (staticResourceHandlers == null) {
staticResourceHandlers = new ArrayList<>();
}
staticResourceHandlers.add(new ExternalResourceHandler(folder, "index.html"));
LOG.info("External StaticResourceHandler configured with folder = " + folder);
} else {
LOG.error("External Static resource location must be a folder");
}
} catch (IOException e) {