public Collection<Attribute> toLDAPAttributeSet(){
  Collection<Attribute> ldapAttrSet=new ArrayList<>();
  int size=size();
  for (int i=0; i < size; i++) {
    Attr attr=(Attr)_attrs.get(i);
    if (attr.size() > 0) {
      ldapAttrSet.add(attr.toLDAPAttribute());
    }
  }
  return ldapAttrSet;
}

public Collection < Attribute > toLDAPAttributeSet ( ) { Collection < Attribute > ldapAttrSet = new ArrayList < > ( ) ; int size = size ( ) ; for ( int i = 0 ; i < size ; i ++ ) { Attr attr = ( Attr ) _attrs . get ( i ) ; if ( attr . size ( ) > 0 ) { ldapAttrSet . add ( attr . toLDAPAttribute ( ) ) ; } } return ldapAttrSet ; }
maps to an ldapattributeset
