protected final void addContentPart ( List < ContentPart < ? > > contentList , String key , String value ) { if ( ( key != null ) && ( value != null ) && ( value . length ( ) > 0 ) ) { if ( this . shouldAddContentPart ( key ) ) { contentList . add ( new ContentPart < String > ( key , value , ContentPartType . STRING ) ) ; } } }
This function adds a string content part