code: @Override
  	public final void setDn(Name dn) {
  		if (!updateMode) {
              this.dn = LdapUtils.newLdapName(dn);
          }
  		else {
  			throw new IllegalStateException(
  					"Not possible to call setDn() on a DirContextAdapter in update mode");
  		}
  
  	}
docs: {@inheritDoc}