code: public static Attributes lookupAttributes(LdapOperations ldapOperations, Name dn, String[] attributes) {
          return loopForAllAttributeValues(ldapOperations, dn, attributes).getCollectedAttributes();
      }
docs: Lookup all values for the specified attributes, looping through the results incrementally if necessary.
  
  @param ldapOperations The instance to use for performing the actual lookup.
  @param dn             The distinguished name of the object to find.
  @param attributes     names of the attributes to request.
  @return an Attributes instance, populated with all found values for the requested attributes.
  Never <code>null</code>, though the actual attributes may not be set if they was not
  set on the requested object.