private int getFontStyle(FontParam param, Stereotype stereotype2) {
		String value = null;
		if (stereotype2 != null) {
			checkStereotype(stereotype2);
			value = getValue(param.name() + "fontstyle" + stereotype2.getLabel());
		}
		if (value == null) {
			value = getValue(param.name() + "fontstyle");
		}
		if (value == null) {
			value = getValue("defaultfontstyle");
		}
		if (value == null) {
			return param.getDefaultFontStyle(this);
		}
		int result = Font.PLAIN;
		if (value.toLowerCase().contains("bold")) {
			result = result | Font.BOLD;
		}
		if (value.toLowerCase().contains("italic")) {
			result = result | Font.ITALIC;
		}
		return result;
	}