question: public Attribute toLDAPAttribute ( ) { Attribute ldapAttribute = null ; if ( _stringValues != null ) { int size = _stringValues . size ( ) ; if ( size == 0 ) { ldapAttribute = Attributes . emptyAttribute ( _name ) ; } else if ( size == 1 ) { ldapAttribute = Attributes . singletonAttribute ( _name , _stringValues . get ( 0 ) ) ; } else if ( size > 1 ) { ldapAttribute = Attributes . emptyAttribute ( _name ) ; for ( String value : _stringValues ) { ldapAttribute . add ( value ) ; } } } else if ( _byteValues != null ) { ldapAttribute = Attributes . emptyAttribute ( _name ) ; for ( byte [ ] value : _byteValues ) { ldapAttribute . add ( value ) ; } } else if ( _ldapAttribute != null ) { ldapAttribute = _ldapAttribute ; } else if ( _name != null ) { ldapAttribute = Attributes . emptyAttribute ( _name ) ; } return ldapAttribute ; }
target:  Map to a ldap attribute