@ Override @ Nullable public String getEncoding ( ) { return ( this . dataSource instanceof EncodingAware ) ? ( ( EncodingAware ) this . dataSource ) . getEncoding ( ) : null ; }
Optimization to help Java Mail determine encoding for attachments .