public String getAttribute(final SearchResult result, final String attributeName) throws NamingException {
        return getAttribute(result.getAttributes(), attributeName);
    }
public String getAttribute ( final SearchResult result , final String attributeName ) throws NamingException { return getAttribute ( result . getAttributes ( ) , attributeName ) ; }
Retrieves an attribute by its name for the specified search result.
@param result the search result of the entry to obtain the attribute value for
@param attributeName the name of the attribute to return
@return the value of the attribute, or null if not found
@throws NamingException if an exception is thrown
@since 1.4.0