private static Subject getLocalUserSubject() {
		String username = ClientUtil.getUserName();
		HashSet<GhidraPrincipal> pset = new HashSet<>();
		HashSet<Object> emptySet = new HashSet<>();
		pset.add(new GhidraPrincipal(username));
		Subject subj = new Subject(false, pset, emptySet, emptySet);
		return subj;
	}
After running the task, this method will return the server handle
if the connection was successful.  If null, a connection error
may have occurred ({@link #getException()}, or the task was cancelled
by the user if both the exception and handle are null.
@return server handle or null if connection attempt failed or was cancelled
Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/client/ServerConnectTask.java