private void appendText ( StringBuilder sb , String text , String format ) { if ( text != null && ! text . isEmpty ( ) ) { format = "@vistanotification.detail." + format + ".label" ; sb . append ( StrUtil . formatMessage ( format , text ) ) . append ( "\n" ) ; } }
Appends a text element if it is not null or empty .