protected void mapToObject(final String dn, final LdapPerson person, final Attributes attributes) throws NamingException
{
person.setSurname(LdapUtils.getAttributeStringValue(attributes, "sn"));
person.setGivenName(LdapUtils.getAttributeStringValue(attributes, "givenName"));
person.setUid(LdapUtils.getAttributeStringValue(attributes, "uid"));
person.setEmployeeNumber(LdapUtils.getAttributeStringValue(attributes, "employeeNumber"));
person.setOrganization(LdapUtils.getAttributeStringValue(attributes, "o"));
person.setMail(LdapUtils.getAttributeStringValues(attributes, "mail"));
person.setDescription(LdapUtils.getAttributeStringValue(attributes, "description"));
person.setTelephoneNumber(LdapUtils.getAttributeStringValue(attributes, "telephoneNumber"));
person.setMobilePhoneNumber(LdapUtils.getAttributeStringValues(attributes, "mobile"));
person.setHomePhoneNumber(LdapUtils.getAttributeStringValue(attributes, "homePhone"));
}