src/main/java/org/apache/bval/bench/Config.java
private Properties overrideDefaultProperties(ClassLoader cl, Properties defaultProperties) {
        InputStream upStream = cl.getResourceAsStream(USER_PROPERTIES_RES);
        if (upStream == null) {
            return defaultProperties;
        }

        Properties userProperties = new Properties(defaultProperties);
        try {
            userProperties.load(upStream);
            upStream.close(); // No finally, an exception here terminates the program
        } catch (IOException e) {
            throw new RuntimeException("Error while reading user properties file.", e);
        }
        return userProperties;
    }
/**
     * Load the file {@link #USER_PROPERTIES_RES}.
     * 
     * @param cl
     *            A classloader from which the properties file will be read.
     * @param defaultProperties
     *            A properties object with the default configuration values.
     * @return A properties object with the default values overriden by the
     *         user.
     */
Load the file  #USER_PROPERTIES_RES.

@param cl
A classloader from which the properties file will be read.
@param defaultProperties
A properties object with the default configuration values.
@return A properties object with the default values overriden by the
user.
Load the file #USER_PROPERTIES_RES . @param cl A classloader from which the properties file will be read . @param defaultProperties A properties object with the default configuration values . @return A properties object with the default values overriden by the user .
private Properties overrideDefaultProperties(ClassLoader cl, Properties defaultProperties) {
        InputStream upStream = cl.getResourceAsStream(USER_PROPERTIES_RES);
        if (upStream == null) {
            return defaultProperties;
        }
        Properties userProperties = new Properties(defaultProperties);
        try {
            userProperties.load(upStream);
            upStream.close(); 
        } catch (IOException e) {
            throw new RuntimeException("Error while reading user properties file.", e);
        }
        return userProperties;
    }
private Properties overrideDefaultProperties ( ClassLoader cl , Properties defaultProperties ) { InputStream upStream = cl . getResourceAsStream ( USER_PROPERTIES_RES ) ; if ( upStream == null ) { return defaultProperties ; } Properties userProperties = new Properties ( defaultProperties ) ; try { userProperties . load ( upStream ) ; upStream . close ( ) ; } catch ( IOException e ) { throw new RuntimeException ( "Error while reading user properties file." , e ) ; } return userProperties ; }
Load the file {@link #USER_PROPERTIES_RES}.
Load the file { @link #USER_PROPERTIES_RES } .
// No finally, an exception here terminates the program