String localizedKey = eo.localizedKey(_key);
Object value = eo.valueForKey(localizedKey);
if (localizedKey != null && (value == null || "".equals(value)) && localizationShouldFallbackToDefaultLanguage()) {
ERXLocalizer currentLocalizer = ERXLocalizer.currentLocalizer();
String defaultLanguage = ERXLocalizer.defaultLanguage();
if (!currentLocalizer.language().equals(defaultLanguage)) {
if (log.isDebugEnabled()) {
log.debug("no data found for '" + eo.entityName() + ':' + _key + "' for language " + currentLocalizer.language() + ", trying " + defaultLanguage);
}
ERXLocalizer.setCurrentLocalizer(ERXLocalizer.localizerForLanguage(defaultLanguage));
value = eo.valueForKey(eo.localizedKey(_key));