public Integer getExitCode() {
        if (isRunning()) {
            return null;
        }
        return json.get(EXIT_CODE).getAsInt();
    }
Model class holding details of the result of an exec command on a running container.
src/main/java/io/fabric8/maven/docker/model/ExecDetails.java