@Override
    protected GitRepoDoc onWrite(final GitRepoDoc doc) {
        doc.setUrl(this.getView().getUrl());
        doc.setUsername(this.getView().getUsername());
        doc.setPassword(this.getView().getPassword());
        doc.setBranch(this.getView().getBranch());
        doc.setPath(this.getView().getPath());
        doc.setAutoPush(this.getView().isAutoPush());
        return doc;
    }
Local copy of the gitRepoDoc, saved in the onRead() method.
Might be null if onRead() hasn't been called yet.
stroom-core-client/src/main/java/stroom/gitrepo/client/presenter/GitRepoSettingsPresenter.java