@FFDCIgnore({ NamingException.class })
    public void rename(String oldName, String newName) throws NamingException {
        final String METHODNAME = "rename(String,String)";

        long begin = 0;
        NamingException ne = null;

        try {
            traceJndiBegin(METHODNAME, oldName, newName);
            begin = System.currentTimeMillis();
            context.rename(oldName, newName);
        } catch (NamingException e) {
            ne = e;
            throw e;
        } finally {
            /*
             * Always attempt to trace the result.
             */
            if (ne == null) {
                traceJndiReturn(METHODNAME, (System.currentTimeMillis() - begin));
            } else {
                traceJndiThrow(METHODNAME, (System.currentTimeMillis() - begin), ne);
            }
        }
    }
@ FFDCIgnore ( { NamingException . class } ) public void rename ( String oldName , String newName ) throws NamingException { final String METHODNAME = "rename(String,String)" ; long begin = 0 ; NamingException ne = null ; try { traceJndiBegin ( METHODNAME , oldName , newName ) ; begin = System . currentTimeMillis ( ) ; context . rename ( oldName , newName ) ; } catch ( NamingException e ) { ne = e ; throw e ; } finally { if ( ne == null ) { traceJndiReturn ( METHODNAME , ( System . currentTimeMillis ( ) - begin ) ) ; } else { traceJndiThrow ( METHODNAME , ( System . currentTimeMillis ( ) - begin ) , ne ) ; } } }
@see InitialLdapContext#rename(String, String)