browserConnection.getConnection().getJNDIConnectionWrapper().modifyEntry( dn, mis,
ReferralHandlingMethod.IGNORE, getControls( modifyRecord ), monitor, null );
}
else if ( record instanceof LdifChangeModDnRecord )
{
LdifChangeModDnRecord modDnRecord = ( LdifChangeModDnRecord ) record;
if ( modDnRecord.getNewrdnLine() != null && modDnRecord.getDeloldrdnLine() != null )
{
String newRdn = modDnRecord.getNewrdnLine().getValueAsString();
boolean deleteOldRdn = modDnRecord.getDeloldrdnLine().isDeleteOldRdn();
try
{
LdapDN newDn;
if ( modDnRecord.getNewsuperiorLine() != null )
newDn = DnUtils.composeDn( newRdn, modDnRecord.getNewsuperiorLine().getValueAsString() );
else
{
LdapDN dnObject = new LdapDN( dn );
LdapDN parent = DnUtils.getParent( dnObject );
newDn = DnUtils.composeDn( newRdn, parent.getUpName() );