protected EmailAttachmentBuilder setContentIdFromNameIfMissing ( ) { if ( contentId == null ) { if ( name != null ) { contentId ( FileNameUtil . getName ( name ) ) ; } else { contentId ( NO_NAME ) ; } } return this ; }
Set content ID if it is missing .