// iterate through the attributes of the supplied user profile
LdapNameMapping nameMap = getConfiguration().getUserProperties().getUserProfileMapping();
UserAttributeMap localMap = user.getProfile();
ModificationItem modItem;
for (UserAttribute localAttr: localMap.values()) {
// determine the local and LDAP keys
String sLocalKey = localAttr.getKey();
String sLocalValue = localAttr.getValue();
String sLdapKey = nameMap.findLdapName(localAttr.getKey());