code: @Override
  	public void update() {
  		NamingEnumeration<? extends Attribute> attributesEnumeration = null;
  
  		try {
  			attributesEnumeration = updatedAttrs.getAll();
  
  			// find what to update
  			while (attributesEnumeration.hasMore()) {
  				Attribute a = attributesEnumeration.next();
  
  				// if it does not exist it should be added
  				if (isEmptyAttribute(a)) {
  					originalAttrs.remove(a.getID());
  				}
  				else {
  					// Otherwise it should be set.
  					originalAttrs.put(a);
  				}
  			}
  		}
  		catch (NamingException e) {
  			throw LdapUtils.convertLdapException(e);
  		}
  		finally {
  			closeNamingEnumeration(attributesEnumeration);
  		}
  
  		// Reset the attributes to be updated
  		updatedAttrs = new NameAwareAttributes();
  	}
docs: {@inheritDoc}