public S getStatement() {
		Thread t = Thread.currentThread();
		if (statement != null && !ownerThread.equals(t)) {
			Msg.error(this, "BSim cached statement used in unsafe-thread manner:" +
				"\n   Created in: " + ownerThread.getName() + "\n   Used in: " + t.getName());
			throw new RuntimeException("BSim cached statement used in unsafe-thread manner");
		}
		return statement;
	}
Get the current cached {@link Statement}.

@return the current cached {@link Statement} or null if not yet established.
@throws RuntimeException if the current thread does not correspond to the owner
thread of a previously established statement.  This is considered a programming
error if this occurs.
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/client/tables/CachedStatement.java