public static void addReporterMetadataItem ( String key , String itemType , String value ) { logger . entering ( new Object [ ] { key , itemType , value } ) ; if ( StringUtils . isNotBlank ( value ) && supportedMetaDataProperties . contains ( itemType ) ) { Map < String , String > subMap = reporterMetadata . get ( key ) ; if ( null == subMap ) { subMap = new HashMap < String , String > ( ) ; } subMap . put ( itemType , value ) ; reporterMetadata . put ( key , subMap ) ; } else { String message = "Key/value pair for '" + key + "' for '" + itemType + "' was not inserted into report metadata." ; logger . fine ( message ) ; } }
Adds an new item to the reporter metadata .