protected void connect(RepositoryAdapter repository) throws IOException {
		if (statusCode != null) {
			throw new IllegalStateException("already connected");
		}
		if (repositoryName == null || !repositoryName.equals(repository.getName())) {
			throw new UnsupportedOperationException("invalid repository connection");
		}
		if (!repository.isConnected()) {
			throw new IllegalStateException("expected connected repository");
		}
		statusCode = StatusCode.OK;
		this.repositoryAdapter = repository;
		this.repositoryServerAdapter = repository.getServer();
		resolveItemPath();
	}
Utilized a cached connection via the specified repository adapter.
This method may only be invoked if not yet connected and the associated
URL corresponds to a repository (getRepositoryName() != null).  The connection 
status code should be established based upon the availability of the 
URL referenced repository resource (i.e., folder or file).
@param repository existing connected repository adapter
@throws IOException if an IO error occurs
Ghidra/Framework/Project/src/main/java/ghidra/framework/protocol/ghidra/GhidraProtocolConnector.java