protected <T> T getAsType(String name, T defaultValue, Class<T> clazz) {
		if (map.containsKey(name)) {
			Object value = map.get(name);
			if (isExpectedType(name, value, clazz)) {
				return clazz.cast(value);
			}
		}
		return defaultValue;

	}
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