code: private void unlinkAllReferences() {
      Collection<Attribute<?>> attributes = elementType.getAllAttributes();
      for (Attribute<?> attribute : attributes) {
        Object identifier = attribute.getValue(this);
        if (identifier != null) {
          ((AttributeImpl<?>) attribute).unlinkReference(this, identifier);
        }
      }
    }
docs: Removes all reference to this.