entity.addAttribute(newAttribute);
newAttribute.setUserInfo(attribute.userInfo());
	protected void createLocalizedAttributes(EOEntity entity) {		NSArray attributes = entity.attributes();		NSArray classProperties = entity.classProperties();		NSArray attributesUsedForLocking = entity.attributesUsedForLocking();		if(attributes == null) attributes = NSArray.EmptyArray;		if(classProperties == null) classProperties = NSArray.EmptyArray;		if(attributesUsedForLocking == null) attributesUsedForLocking = NSArray.EmptyArray;		NSMutableArray mutableClassProperties = classProperties.mutableClone();		NSMutableArray mutableAttributesUsedForLocking = attributesUsedForLocking.mutableClone();		for(Enumeration e = attributes.objectEnumerator(); e.hasMoreElements(); ) {			EOAttribute attribute = (EOAttribute)e.nextElement();			NSDictionary userInfo = attribute.userInfo();			String name = attribute.name();			if(userInfo != null) {				NSArray languages = (NSArray)userInfo.objectForKey("ERXLanguages");				if(languages != null && languages.count() > 0) {					String columnName = attribute.columnName();					for (int i = 0; i < languages.count(); i++) {						String language = (String) languages.objectAtIndex(i);						String newName = name + "_" +language;						String newColumnName = columnName + "_" +language;						EOAttribute newAttribute = new EOAttribute();						newAttribute.setPrototype(attribute.prototype());						newAttribute.setName(newName);						newAttribute.setColumnName(newColumnName);						newAttribute.setAllowsNull(attribute.allowsNull());						newAttribute.setClassName(attribute.className());						newAttribute.setExternalType(attribute.externalType());						newAttribute.setWidth(attribute.width());						entity.addAttribute(newAttribute);						if(classProperties.containsObject(attribute)) {							mutableClassProperties.addObject(newAttribute);						}						if(attributesUsedForLocking.containsObject(attribute)) {							mutableAttributesUsedForLocking.addObject(newAttribute);						}					}					entity.removeAttribute(attribute);					mutableClassProperties.removeObject(attribute);					mutableAttributesUsedForLocking.removeObject(attribute);				}			}			entity.setClassProperties(mutableClassProperties);			entity.setAttributesUsedForLocking(mutableAttributesUsedForLocking);		}	}