private static String printSchema(StringBuilder sb,String schema,String lastSchema,boolean pureSQL){
  if (schema != null && (lastSchema == null || (lastSchema != null && lastSchema.compareTo(schema) != 0))) {
    if (pureSQL) {
      if (schema.length() > 0)       println(sb,"USE " + schema + ";");
    }
 else     println(sb,"- SCHEMA = " + schema);
  }
  return schema;
}

private static String printSchema ( StringBuilder sb , String schema , String lastSchema , boolean pureSQL ) { if ( schema != null && ( lastSchema == null || ( lastSchema != null && lastSchema . compareTo ( schema ) != 0 ) ) ) { if ( pureSQL ) { if ( schema . length ( ) > 0 ) println ( sb , "USE " + schema + ";" ) ; } else println ( sb , "- SCHEMA = " + schema ) ; } return schema ; }
format and print schema name if it differs from the last printed schema name .
