public void connect() throws RepositoryNotFoundException, IOException {
		synchronized (serverAdapter) {
			if (repository != null) {
				try {
					repository.getName(); // just called to test the connection.
				}
				catch (NotConnectedException | RemoteException e) {
					if (recoverConnection(e)) {
						return;
					}
					throw e;
				}
			}
			if (repository == null) {
				serverAdapter.connect(); // may cause auto-reconnect of repository
			}
			if (repository == null) {
				repository = serverAdapter.getRepositoryHandle(name);
				unexpectedDisconnect = false;
				if (repository == null) {
					noSuchRepository = true;
					throw new RepositoryNotFoundException("Repository '" + name + "': not found");
				}
				Msg.info(this, "Connected to repository '" + name + "'");
				changeDispatcher.start();
				fireStateChanged();
			}
		}
	}
Attempt to connect to the server.
@throws RepositoryNotFoundException if named repository does not exist
@throws IOException if IO error occurs
Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/client/RepositoryAdapter.java