public static String dumpProperties(Properties props,String name){
  StringBuffer propStr=new StringBuffer();
  Enumeration propsE=props.propertyNames();
  propStr.append(lineSep + separator + " "+ name+ " "+ separator+ lineSep);
  while (propsE.hasMoreElements()) {
    String key=(String)propsE.nextElement();
    propStr.append(left(key,28,' ') + ":  " + props.get(key)+ lineSep);
  }
  propStr.append(separator + separator + separator+ lineSep);
  return propStr.toString();
}

public static String dumpProperties ( Properties props , String name ) { StringBuffer propStr = new StringBuffer ( ) ; Enumeration propsE = props . propertyNames ( ) ; propStr . append ( lineSep + separator + " " + name + " " + separator + lineSep ) ; while ( propsE . hasMoreElements ( ) ) { String key = ( String ) propsE . nextElement ( ) ; propStr . append ( left ( key , 28 , ' ' ) + ":  " + props . get ( key ) + lineSep ) ; } propStr . append ( separator + separator + separator + lineSep ) ; return propStr . toString ( ) ; }
return a set of properties as a formatted string
