/* ************************* Helper methods ************************** */
void setDefaultsIfNecessary() {
if (fileMonitor == null) {
FileMonitorImpl fileMonitor = new FileMonitorImpl();
final List<String> includes = autoReloadFileIncludes != null ? Arrays.asList(autoReloadFileIncludes) : new ArrayList<String>();
final List<String> excludes = autoReloadFileExcludes != null ? Arrays.asList(autoReloadFileExcludes) : new ArrayList<String>();
fileMonitor.setFileFilter(new MonitorFileFilter(includes, excludes));
this.fileMonitor = fileMonitor;
}
if (executor == null)
executor = Executors.newSingleThreadScheduledExecutor();