public String getValue(String key) throws SQLException {
		PreparedStatement s =
			selectStatement.prepareIfNeeded(() -> db.prepareStatement(SELECT_STMT));
		s.setString(1, key);
		try (ResultSet rs = s.executeQuery()) {
			String value;
			if (rs.next()) {
				value = rs.getString(1);
			}
			else {
				throw new SQLException("Could not fetch key value: " + key);
			}
			return value;
		}
	}
@param key the key to get the value for
@return the value associated with key or throw exception if key not present
@throws SQLException if the sql statement cannot be parsed
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/client/tables/KeyValueTable.java