@Override
	public void restoreXml(XmlPullParser parser, LSHVectorFactory vectorFactory)
			throws LSHException {
		parser.start(name);
		parser.start("tablename");
		tableName = parser.end().getText();
		parser.start("keytype");
		keyType = SpecXmlUtils.decodeInt(parser.end().getText());
		parser.start("valuetype");
		valueType = SpecXmlUtils.decodeInt(parser.end().getText());
		parser.start("create");
		attemptCreation = SpecXmlUtils.decodeBoolean(parser.end().getText());
		parser.start("clear");
		clearTable = SpecXmlUtils.decodeBoolean(parser.end().getText());
		parser.end();
	}
Query whether an optional table exists. If it doesn't exist it can be created.
If it exists, it can be cleared
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/protocol/QueryOptionalExist.java