question: public static String formatPropertiesOld ( String name , TungstenProperties props , String header , boolean wasModified ) { String indent = "  " ; StringBuilder builder = new StringBuilder ( ) ; builder . append ( header ) ; builder . append ( String . format ( "%s%s\n" , name , modifiedSign ( wasModified ) ) ) ; builder . append ( "{\n" ) ; Map < String , String > propMap = props . hashMap ( ) ; for ( String key : propMap . keySet ( ) ) { builder . append ( String . format ( "%s%s = %s\n" , indent , key , propMap . get ( key ) ) ) ; } builder . append ( String . format ( "}" ) ) ; return builder . toString ( ) ; }
target:  Does a generic format of a TungstenProperties instance.