if (targetAttributePath.getChildIEOAttribute() != this) {
if (targetAttributePath != null && targetAttributePath.getChildIEOAttribute() != this) {
  public Boolean isToMany() {    Boolean toMany = null;    if (isFlattened() && myEntity != null) {      AbstractEOAttributePath targetAttributePath = myEntity.resolveKeyPath(getDefinition());      if (targetAttributePath.getChildIEOAttribute() != this) {        toMany = targetAttributePath.isToMany();      }    }    else {      toMany = myToMany;    }    return toMany;  }