@Override
	public void restoreXml(XmlPullParser parser, LSHVectorFactory vectorFactory)
			throws LSHException {
		tableExists = false;
		wasCreated = false;
		parser.start(name);
		if (parser.peek().getName().equals("exists")) {
			parser.start();
			tableExists = SpecXmlUtils.decodeBoolean(parser.end().getText());
		}
		if (parser.peek().getName().equals("created")) {
			parser.start();
			tableExists = SpecXmlUtils.decodeBoolean(parser.end().getText());
		}
		parser.end();
	}
Response to a QueryOptionalExist, reporting whether an optional table exists
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/protocol/ResponseOptionalExist.java