public static String formatKeyPair(Map<String, Object> keyPairs) {
        if (keyPairs == null) {
            return "";
        }
        StringBuilder stringBuilder = new StringBuilder();
        for (Map.Entry<String, Object> entry : keyPairs.entrySet()) {
            stringBuilder.append(DIV);
            stringBuilder.append(entry.getKey());
            stringBuilder.append(" : ");
            stringBuilder.append(Reporter.formatHTML(String.valueOf(entry.getValue())));
            stringBuilder.append(END_DIV);
        }
        return stringBuilder.toString();
    }
public static String formatKeyPair ( Map < String , Object > keyPairs ) { if ( keyPairs == null ) { return "" ; } StringBuilder stringBuilder = new StringBuilder ( ) ; for ( Map . Entry < String , Object > entry : keyPairs . entrySet ( ) ) { stringBuilder . append ( DIV ) ; stringBuilder . append ( entry . getKey ( ) ) ; stringBuilder . append ( " : " ) ; stringBuilder . append ( Reporter . formatHTML ( String . valueOf ( entry . getValue ( ) ) ) ) ; stringBuilder . append ( END_DIV ) ; } return stringBuilder . toString ( ) ; }
From an object map passed in, building a key value set, properly html
formatted for used in reporting

@param keyPairs - the key value set
@return String: an html formatting string