public static boolean parseBoolean(String boolStr) throws XmlAttributeException {
		if (boolStr == null) {
			return false;
		}
		if (!boolStr.equalsIgnoreCase("y") && !boolStr.equalsIgnoreCase("n") &&
			!boolStr.equalsIgnoreCase("true") && !boolStr.equalsIgnoreCase("false")) {
			throw new XmlAttributeException(boolStr + " is not a valid boolean (y|n)");
		}
		return "y".equalsIgnoreCase(boolStr) || "true".equalsIgnoreCase(boolStr);
	}
Parses the given string into a boolean value. Acceptable inputs are
y,n,true,fase. A null input string will return false (useful if optional
boolean attribute is false by default)

@param boolStr the string to parse into a boolean value
@return the boolean result.
@throws XmlAttributeException if the string in not one of y,n,true,false
            or null.
Ghidra/Framework/Generic/src/main/java/ghidra/util/xml/XmlUtilities.java