*/
private static void setExternalStaticFileLocationIfPresent(String externalFilesRoute,
List<Handler> handlersInList) {
if (externalFilesRoute != null) {
try {
ResourceHandler externalResourceHandler = new ResourceHandler();
Resource externalStaticResources = Resource.newResource(new File(externalFilesRoute));
externalResourceHandler.setBaseResource(externalStaticResources);
externalResourceHandler.setWelcomeFiles(new String[] {"index.html"});
handlersInList.add(externalResourceHandler);
} catch (IOException exception) {
exception.printStackTrace(); // NOSONAR
System.err.println("Error during initialize external resource " + externalFilesRoute); // NOSONAR
}