public void addAdditionalDetail ( String key , String detail ) { if ( detail == null || detail . trim ( ) . isEmpty ( ) ) return ; if ( this . additionalDetails == null ) { this . additionalDetails = new HashMap < String , String > ( ) ; } String additionalContent = this . additionalDetails . get ( key ) ; if ( additionalContent != null && ! additionalContent . trim ( ) . isEmpty ( ) ) detail = additionalContent + "-" + detail ; if ( ! detail . isEmpty ( ) ) additionalDetails . put ( key , detail ) ; }
Adds an entry to the additional information map .