Enumeration elem = this.properties.keys(); int cnt = 0; while ( elem.hasMoreElements() ) { String key = (String)elem.nextElement(); String val = temp.getProperty( key ); if ( val != null ) { this.properties.setProperty( key, val ); logger.finer( "  " + key + " -> " + val ); cnt++; } } logger.finer( "Configuration: " + cnt + " properties overridden from override properties file." );
    private void loadOverrideProperties() {        String override = System.getProperty( "xr-props" );        if ( override != null ) {            logger.fine( "Configuration override file specified as " + override + ", looking for it." );            InputStream readStream = GeneralUtil.openStreamFromClasspath( override );            if ( readStream == null ) {                logger.warning( "Could not find override properties file at " + override + ", using defaults." );                return;            } else {                Properties temp = new Properties();                try {                    temp.load( readStream );                } catch ( IOException iex ) {                    logger.log( Level.WARNING, "Error while loading override properties file; skipping.", iex );                    return;                }                Enumeration elem = this.properties.keys();                int cnt = 0;                while ( elem.hasMoreElements() ) {                    String key = (String)elem.nextElement();                    String val = temp.getProperty( key );                    if ( val != null ) {                        this.properties.setProperty( key, val );                        logger.finer( "  " + key + " -> " + val );                        cnt++;                    }                }                logger.finer( "Configuration: " + cnt + " properties overridden from override properties file." );            }        }    }