protected void registerNewObjectInIdentityMap(Object clone, Object original) {
// CR 2728 Added check for sequencing to allow zero primitives for id's if the client
//is not using sequencing.
Class cls = clone.getClass();
ClassDescriptor descriptor = getDescriptor(cls);
boolean usesSequences = descriptor.usesSequenceNumbers();
if (shouldNewObjectsBeCached()) {
// Also put it in the cache if it has a valid primary key, this allows for double new object merges
Vector key = keyFromObject(clone, descriptor);
boolean containsNull = false;