core/src/main/java/com/orientechnologies/orient/core/record/ORecordInternal.java
public static ORecordAbstract setIdentity(final ORecord record, final int iClusterId, final long iClusterPosition) {
    final ORecordAbstract rec = (ORecordAbstract) record;
    rec.setIdentity(iClusterId, iClusterPosition);
    return rec;
  }
public static ORecordAbstract setIdentity(final ORecord record, final int iClusterId, final long iClusterPosition) {
    final ORecordAbstract rec = (ORecordAbstract) record;
    rec.setIdentity(iClusterId, iClusterPosition);
    return rec;
  }
Internal only. Changes the identity of the record.