code: @Override
      public Object mapFromAttributes(final Attributes attributes) throws NamingException {
          final int attributeCount = attributes.size();
          final Map<String, Object> mapOfAttrValues = this.createAttributeMap(attributeCount);
  
          for (final NamingEnumeration<? extends Attribute> attributesEnum = attributes.getAll(); attributesEnum.hasMore(); ) {
              final Attribute attribute = attributesEnum.next();
  
              if (!this.ignoreNull || attribute.size() > 0) {
                  final String attrName = attribute.getID();
                  final String key = this.getAttributeKey(attrName);
  
                  final NamingEnumeration<?> valuesEnum = attribute.getAll();
                  final List<?> values = this.getAttributeValues(valuesEnum);
  
                  mapOfAttrValues.put(key, values);
              }
          }
  
          return mapOfAttrValues;
      }
docs: /* (non-Javadoc)
  @see org.springframework.ldap.core.AttributesMapper#mapFromAttributes(javax.naming.directory.Attributes)