@Override
		public synchronized Connection getConnection() throws SQLException {

			if (successfulConnection) {
				if (bds.isClosed()) {
					bds.restart();
				}
				return bds.getConnection();
			}

			setDefaultProperties();

			return taskCoordinator.getConnection(() -> connect());
		}
Get a connection to the H2 file database.
It is important to note that if the database does not exist and empty one will
be created.  The {@link #exists()} method should be used to check for the database
existance prior to connecting the first time.
@return database connection
@throws SQLException if a database error occurs
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/file/BSimH2FileDBConnectionManager.java