Map.Entry<String, Attribute> res;
if (mapping.isAccountid()) {
res = new DefaultMapEntry(objValues.iterator().next().toString(), null);
} else if (mapping.isPassword()) {
res = new DefaultMapEntry(null, AttributeBuilder.buildPassword(objValues.iterator().next().toString().
toCharArray()));
} else {
if (schema != null && schema.isMultivalue()) {
res = new DefaultMapEntry(null, AttributeBuilder.build(extAttrName, objValues));
} else {
res = new DefaultMapEntry(null, objValues.isEmpty()
? AttributeBuilder.build(extAttrName)
: AttributeBuilder.build(extAttrName, objValues.iterator().next()));
}
}