if (attributes != null) {
for (Enumeration e = attributes.objectEnumerator(); e.hasMoreElements();) {
EOAttribute attribute = (EOAttribute) e.nextElement();
boolean isClassProperty = classProperties.containsObject(attribute);
boolean isUsedForLocking = attributesUsedForLocking.containsObject(attribute);
Object languagesObject = attribute.userInfo() != null ? attribute.userInfo().objectForKey(LANGUAGES_KEY) : null;
if (languagesObject != null && !(languagesObject instanceof NSArray)) {
languagesObject = entity.model().userInfo() != null ? entity.model().userInfo().objectForKey(LANGUAGES_KEY) : null;
if(languagesObject == null) {
languagesObject = ERXProperties.arrayForKey(LANGUAGES_KEY);
}