public String getLanguage(final FObj fobj, final FoContext context) {
PdLanguage property = (PdLanguage) getProperty(FoProperty.LANGUAGE);
if (property != null) {
return property.getValue(context, fobj);
}
final Lang langProperty = (Lang) getProperty(XmlProperty.LANG);
if (langProperty != null) {
property = langProperty.getLanguage();
if (property != null) {
return property.getValue(context, fobj);
}
}
return PdLanguage.getValueNoInstance(context, fobj);