public void rename(String oldName, String newName)
            throws NamingException {
        rename(new CompositeName(oldName), new CompositeName(newName));
    }
public void rename(String oldName, String newName)
            throws NamingException {
        rename(new CompositeName(oldName), new CompositeName(newName));
    }
public void rename ( String oldName , String newName ) throws NamingException { rename ( new CompositeName ( oldName ) , new CompositeName ( newName ) ) ; }
Renames an object. Since COS Naming does not support a rename
api, this method unbinds the object with the "oldName" and
creates a new binding.

@param oldName string, existing name for the binding.
@param newName string, name used to replace.
@throws NamingException See bind
Renames an object . Since COS Naming does not support a rename api this method unbinds the object with the oldName and creates a new binding .