@Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    ReferenceNode node = (ReferenceNode)o;
    if (id != node.id) return false;
    return true;
  }
@Override
  public boolean equals(Object o)