if (text == null) { text = "?"; }
  public String getText(Object _element) {    String text;    if (_element instanceof EOModel) {      EOModel model = (EOModel) _element;      text = model.getName();    }    else if (_element instanceof EOEntity) {      EOEntity entity = (EOEntity) _element;      text = entity.getName();    }    else if (_element instanceof EORelationship) {      EORelationship relationship = (EORelationship) _element;      text = relationship.getName();    }    else if (_element instanceof EORelationshipPath) {      EORelationshipPath relationshipPath = (EORelationshipPath) _element;      text = relationshipPath.getChildRelationship().getName();    }    else if (_element instanceof EOFetchSpecification) {      EOFetchSpecification fetchSpec = (EOFetchSpecification) _element;      text = fetchSpec.getName();    }    else {      text = null;    }    return text;  }