public Name getTemporaryName(Name originalName) {
        LdapName temporaryName = LdapUtils.newLdapName(originalName);

        // Add tempSuffix to the leaf node name.
        try {
            String leafNode = (String) temporaryName.remove(temporaryName.size() - 1);
            temporaryName.add(new Rdn(leafNode  + tempSuffix));
        } catch (InvalidNameException e) {
            throw new org.springframework.ldap.InvalidNameException(e);
        }

        return temporaryName;
    }
public Name getTemporaryName ( Name originalName ) { LdapName temporaryName = LdapUtils . newLdapName ( originalName ) ; try { String leafNode = ( String ) temporaryName . remove ( temporaryName . size ( ) - 1 ) ; temporaryName . add ( new Rdn ( leafNode + tempSuffix ) ) ; } catch ( InvalidNameException e ) { throw new org . springframework . ldap . InvalidNameException ( e ) ; } return temporaryName ; }
/*
@see org.springframework.ldap.support.transaction.TempEntryRenamingStrategy#getTemporaryName(javax.naming.Name)