public void rename( Entry entry, Rdn newRdn, boolean cascade ) throws LdapException
{
String schemaName = getSchemaName( entry.getDn() );
ObjectClass oldOc = factory.getObjectClass( schemaManager, entry, schemaManager.getRegistries(), schemaName );
Entry targetEntry = ( Entry ) entry.clone();
<BUG>String newOid = newRdn.getNormValue().getString();
targetEntry.put( MetaSchemaConstants.M_OID_AT, newOid );</BUG>
Dn newDn = targetEntry.getDn().getParent();
newDn = newDn.add( newRdn );
checkOidIsUnique( newOid );

public void rename( Entry entry, Rdn newRdn, boolean cascade ) throws LdapException
{
String schemaName = getSchemaName( entry.getDn() );
ObjectClass oldOc = factory.getObjectClass( schemaManager, entry, schemaManager.getRegistries(), schemaName );
Entry targetEntry = ( Entry ) entry.clone();
String newOid = newRdn.getNormValue();
targetEntry.put( MetaSchemaConstants.M_OID_AT, newOid );
Dn newDn = targetEntry.getDn().getParent();
newDn = newDn.add( newRdn );
checkOidIsUnique( newOid );
