private void addIntegerToMap(String key, Integer value, Integer defaultValue, Map<String, Object> map) {
        if (value != null) {
            map.put(key, value);
        } else if (defaultValue != null) {
            map.put(key, defaultValue);
        }
    }
A maven goal (re)creates the configuration file with just the provided initialisation parameters.

@author Mark Schrijver
@since 3.0.17
build-parent/maven-plugin/src/main/java/com/speedment/maven/abstractmojo/AbstractInitMojo.java