this.cfg = new PropertiesParser(props);
String requestedFile = System.getProperty(PROPERTIES_FILE); String propFileName = requestedFile != null ? requestedFile : "quartz.properties"; File propFile = new File(propFileName);  Properties props = new Properties();  if (propFile.exists()) { try { if (requestedFile != null) propSrc = "specified file: '" + requestedFile + "'"; else propSrc = "default file in current working dir: 'quartz.properties'";  props.load(new BufferedInputStream(new FileInputStream( propFileName)));  initialize(overRideWithSysProps(props)); } catch (IOException ioe) { initException = new SchedulerException("Properties file: '" + propFileName + "' could not be read.", ioe); throw initException; } } else if (requestedFile != null) { InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(requestedFile);  if(in == null) { initException = new SchedulerException("Properties file: '" + requestedFile + "' could not be found."); throw initException; }  propSrc = "specified file: '" + requestedFile + "' in the class resource path.";  try { props.load(new BufferedInputStream(in)); initialize(overRideWithSysProps(props)); } catch (IOException ioe) { initException = new SchedulerException("Properties file: '" + requestedFile + "' could not be read.", ioe); throw initException; }  } else { propSrc = "default resource file in Quartz package: 'quartz.properties'";  InputStream in = getClass().getClassLoader().getResourceAsStream( "quartz.properties");  if (in == null) in = getClass().getClassLoader().getResourceAsStream( "/quartz.properties"); if (in == null) in = getClass().getClassLoader().getResourceAsStream( "org/quartz/quartz.properties"); if (in == null) { initException = new SchedulerException( "Default quartz.properties not found in class path"); throw initException; } try { props.load(in); } catch (IOException ioe) { initException = new SchedulerException( "Resource properties file: 'org/quartz/quartz.properties' " + "could not be read from the classpath.", ioe); throw initException; }  initialize(overRideWithSysProps(props)); }
    public void initialize(Properties props) throws SchedulerException {        if (propSrc == null)                propSrc = "an externally provided properties instance.";        this.cfg = new PropertiesParser(props);    }