package ahlers.phantom.embedded;

import de.flapdoodle.embed.process.config.ExecutableProcessConfig;
import de.flapdoodle.embed.process.config.ISupportConfig;
import de.flapdoodle.embed.process.distribution.IVersion;

/**
 * Command line options for PhantomJS.
 *
 * @author [[mailto:michael@ahlers.consulting Michael Ahlers]]
 * @see <a href="http://phantomjs.org/api/command-line.html"><em>Command Line Interface</em></a>
 */
public class PhantomConfig
        extends ExecutableProcessConfig {

    private final Boolean debug;

    protected PhantomConfig(
            final IVersion version,
            final Boolean debug
    ) {
        super(version, new ISupportConfig() {
            @Override
            public String getName() {
                return "phantomjs";
            }

            @Override
            public String getSupportUrl() {
                return "https://github.com/michaelahlers/embedded-phantom/issues";
            }

            @Override
            public String messageOnException(final Class<?> context, final Exception exception) {
                return "";
            }
        });

        this.debug = debug;
    }

    public Boolean getDebug() {
        return debug;
    }

    public static Builder defaultConfig(final PhantomVersion version) {
        return new Builder(version);
    }

    public static Builder defaultConfig() {
        return defaultConfig(PhantomVersion.DEFAULT);
    }

    public static class Builder {

        private final IVersion version;

        private Boolean debug;

        public Builder(final IVersion version) {
            this.version = version;
        }

        public void withDebug(final Boolean debug) {
            this.debug = debug;
        }

        public PhantomConfig build() {
            return new PhantomConfig(version, debug);
        }

    }

}

@@ -1247,29 +1247,23 @@
 Builder 
-defaultConfig
+builder
 (final P
@@ -1357,29 +1357,23 @@
 Builder 
-defaultConfig
+builder
 () %7B%0A   
@@ -1388,21 +1388,15 @@
 urn 
-defaultConfig
+builder
 (Pha

Rename builder factory