base/common/src/main/com/thesett/common/jndi/SimpleContext.java
public void rename(Name oldname, Name newname) throws NamingException
    {
        // Flat namespace; no federation; just call string version
        rename(oldname.toString(), newname.toString());
    }
public void rename(Name oldname, Name newname) throws NamingException
    {
        // Flat namespace; no federation; just call string version
        rename(oldname.toString(), newname.toString());
    }
Binds a new name to the object bound to an old name, and unbinds the old name. Both names are relative to this
context. Any attributes associated with the old name become associated with the new name. Intermediate contexts
of the old name are not changed.

@param  oldname The name of the existing binding; may not be empty.
@param  newname The new name of the binding; may not be empty.

@throws NamingException If newname is bound, oldname cannot be found or one of the names is illegal.