private Connection getOrCreateLocalConnection() throws Exception {

		try {
			if (localConnection == null || localConnection.isClosed()) {
				localConnection = createLocalConnection();
			}
		}
		catch (SQLException | IOException e) {
			Msg.error(this, "Error creating connection to Postgres database", e);
			throw e;
		}
		return localConnection;
	}
Returns a connection to a local Postgres database. If a connection has not yet
been established, it creates one.

@return the database connection
@throws Exception  if there's an error creating the connection
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/BSimControlLaunchable.java