Attributes attributes = editor.getData();
attributes = editor.getData(); } catch (NamingException e) { logger.log(Level.WARNING, "modify failed", e); return; }
    protected void ok() {	try {                        Attributes attributes = editor.getData();	    List modifications = new LinkedList();	    NamingEnumeration enum = attributes.getAll();	    while (enum.hasMore()) {		Attribute editedAttribute = (Attribute)enum.next();		Attribute backedAttribute = backedAttributes.get(editedAttribute.getID());		if (editedAttribute.equals(backedAttribute))		    continue;		modifications.add(new ModificationItem(DirContext.REPLACE_ATTRIBUTE, editedAttribute));	    }	    ModificationItem[] items		= (ModificationItem[])modifications.toArray(new ModificationItem[modifications.size()]);	    getContext().modifyAttributes(dn, items);	}