Attribute dn = entry.remove( "dn" );
Attribute dn = ( Attribute ) entry.get( "dn" ).clone();
    private void createTestEntries() throws NamingException    {        /*         * Unfortunately to test non-root user startup of the core and make sure         * all the appropriate functionality is there we need to load more user         * entries at startup due to a chicken and egg like problem.  The value         * of this property is a list of attributes to be added.         */        Iterator i = configuration.getTestEntries().iterator();        while( i.hasNext() )        {            Attributes entry = ( Attributes ) i.next();            entry.put( "creatorsName", SystemPartition.ADMIN_PRINCIPAL );            entry.put( "createTimestamp", DateUtils.getGeneralizedTime() );                        Attribute dn = entry.remove( "dn" );            AttributeTypeRegistry registry = globalRegistries.getAttributeTypeRegistry();            NameComponentNormalizer ncn = new ConcreteNameComponentNormalizer( registry );            DnParser parser = new DnParser( ncn );            Name ndn = parser.parse( ( String ) dn.get() );                        rootNexus.add( ( String ) dn.get(), ndn, entry );        }    }