}
if (myEntity != null) {
myEntity._checkForDuplicateAttributeName(this, newName, null);
EOModel model = myEntity.getModel();
if (model != null) {
model.getModelEvents().addEvent(new EOAttributeRenamedEvent(this));
}
}
super.setName((String) _nullIfPrototyped(AbstractEOArgument.NAME, newName), _fireEvents);
if (myEntity != null && myEntity.getModel() != null) {
for (EOEntity childrenEntity : myEntity.getChildrenEntities()) {