private boolean isExpectedType(String name, Object value, Class<?> expectedType) {
		if (value != null && !expectedType.isInstance(value)) {
			Msg.debug(this,
				"Type mismatch on GProperties property \"" + name +
					"\". Attempted to retrieve value as a " + expectedType.getName() +
					" but was of type " + value.getClass().getName());
			return false;
		}
		return true;
	}
Returns the root of an XML sub-tree associated with the
given name.
@param name The name associated with the desired Element.
@return The root of an XML sub-tree associated with the
given name.
Ghidra/Framework/Generic/src/main/java/ghidra/framework/options/GProperties.java