private DN computeNewDN() throws DirectoryException
{
if (newSuperior == null)
{
DN parentDn = DN.decode(this.getDn()).getParent();
return parentDn.concat(RDN.decode(newRDN));
}
else
{
String newStringDN = newRDN + "," + newSuperior;
return DN.decode(newStringDN);