static void editPropertyFile(Path filePath, String propertyName, String propertyValue,
      boolean append) throws Exception {
    InputStream input = Files.newInputStream(filePath);
    Properties properties = new Properties();
    properties.load(input);

    String val;
    if (append) {
      val = properties.getProperty(propertyName) + propertyValue;
    } else {
      val = propertyValue;
    }

    properties.setProperty(propertyName, val);
    properties.store(Files.newOutputStream(filePath), null);

    logger.info("Modified container Property file " + filePath);
  }
Edits the specified property within the given property file

@param filePath path to the property file
@param propertyName property name to edit
@param propertyValue new property value
@param append whether or not to append the given property value. If true appends the given
       property value the current value. If false, replaces the current property value with the
       given property value
geode-assembly/geode-assembly-test/src/main/java/org/apache/geode/session/tests/ContainerInstall.java