simulator/src/main/java/com/hazelcast/simulator/common/SimulatorProperties.java
public SimulatorProperties init(File file) {
        if (file == null) {
            // if no file is explicitly given, we look in the working directory
            file = new File(getUserDir(), PROPERTIES_FILE_NAME);
            if (!file.exists()) {
                LOGGER.info(format("Found no %s in working directory, relying on default properties", PROPERTIES_FILE_NAME));
                return null;
            }
        }

        LOGGER.info(format("Loading additional %s: %s", PROPERTIES_FILE_NAME, file.getAbsolutePath()));
        check(file);
        load(file, false);
        return this;
    }
public SimulatorProperties init(File file) {
        if (file == null) {
            // if no file is explicitly given, we look in the working directory
            file = new File(getUserDir(), PROPERTIES_FILE_NAME);
            if (!file.exists()) {
                LOGGER.info(format("Found no %s in working directory, relying on default properties", PROPERTIES_FILE_NAME));
                return null;
            }
        }

        LOGGER.info(format("Loading additional %s: %s", PROPERTIES_FILE_NAME, file.getAbsolutePath()));
        check(file);
        load(file, false);
        return this;
    }
public SimulatorProperties init ( File file ) { if ( file == null ) { // if no file is explicitly given, we look in the working directory file = new File ( getUserDir ( ) , PROPERTIES_FILE_NAME ) ; if ( ! file . exists ( ) ) { LOGGER . info ( format ( "Found no %s in working directory, relying on default properties" , PROPERTIES_FILE_NAME ) ) ; return null ; } } LOGGER . info ( format ( "Loading additional %s: %s" , PROPERTIES_FILE_NAME , file . getAbsolutePath ( ) ) ) ; check ( file ) ; load ( file , false ) ; return this ; }
Initializes the SimulatorProperties with additional properties.

@param file the file to load the properties from. If {@code null}, the {@value #PROPERTIES_FILE_NAME} file in the working
directory is tried.
@return this
@throws CommandLineExitException if the given file does not exist. If file is {@code null} no exception will be thrown,
even if the {@value #PROPERTIES_FILE_NAME} file in the working directory cannot be found.
Initializes the SimulatorProperties with additional properties .