if (getAttributeNamed(attribute.getName()) == null) {
if (_entity.getAttributeNamed(attribute.getName()) == null) {
  protected void _cloneAttributesAndRelationshipsInto(EOEntity _entity, boolean _fireEvents, Set _failures) throws DuplicateAttributeNameException, DuplicateRelationshipNameException {    Iterator attributesIter = getAttributes().iterator();    while (attributesIter.hasNext()) {      EOAttribute attribute = (EOAttribute) attributesIter.next();      if (getAttributeNamed(attribute.getName()) == null) {        attribute.cloneInto(_entity, _fireEvents, _failures);      }    }    Iterator relationshipsIter = getRelationships().iterator();    while (relationshipsIter.hasNext()) {      EORelationship relationship = (EORelationship) relationshipsIter.next();      if (getRelationshipNamed(relationship.getName()) == null) {        relationship.cloneInto(_entity, _fireEvents, _failures);      }    }  }