@Override
	protected boolean doFinish() {
		if (data.isSharedProject()) {
			RepositoryAdapter repository = getOrCreateRepository();
			if (repository == null) {
				return false;
			}
			try {
				repository.connect();
			}
			catch (IOException e) {
				setStatusMessage("Can't connect to repository: " + data.getRepositoryName());
				return false;
			}

			data.setRepository(repository);
		}
		return true;
	}
Wizard model for creating new Ghidra projects.
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/wizard/project/ProjectWizardModel.java