backupCtx.createSubcontext( deletedEntryName.get( 1 ), deletedEntry ); System.out.println( "Backed up deleted entry to \"" + ( ( LdapContext ) backupCtx.lookup( deletedEntryName.get( 1 ) ) ).getNameInNamespace() + "\"" );
String deletedEntryRdn = deletedEntryName.get( deletedEntryName.size() - 1 ); backupCtx.createSubcontext( deletedEntryRdn, deletedEntry ); System.out.println( "Backed up deleted entry to \"" + ( ( LdapContext ) backupCtx.lookup( deletedEntryRdn ) ).getNameInNamespace() + "\"" );
    public static void backupDeleted( LdapContext ctx, Name deletedEntryName, Name operationPrincipal, Attributes deletedEntry ) throws NamingException    {        System.out.println( "User \"" + operationPrincipal + "\" has deleted entry \"" + deletedEntryName + "\"" );        System.out.println( "Entry content was: " + deletedEntry );        LdapContext backupCtx = ( LdapContext ) ctx.lookup( "ou=backupContext,ou=system" );        backupCtx.createSubcontext( deletedEntryName.get( 1 ), deletedEntry );        System.out.println( "Backed up deleted entry to \"" + ( ( LdapContext ) backupCtx.lookup( deletedEntryName.get( 1 ) ) ).getNameInNamespace() + "\"" );    }