@Override public void start() { URL url = (URL) context .getObject(CoreConstants.URL_OF_LAST_CONFIGURATION_VIA_JORAN); if (url != null) { fileToScan = convertToFile(url); if (fileToScan != null) { synchronized (lock) { long inSeconds = refreshPeriod / 1000; addInfo("Will scan for changes in file [" + fileToScan + "] every " + inSeconds + " seconds. "); lastModified = fileToScan.lastModified(); updateNextCheck(System.currentTimeMillis()); } super.start(); } } else { addError("Could not find URL of file to scan."); } }