code: public final static String formatForPrint(String input) {
          if (input.length() > 60) {
              StringBuffer tmp = new StringBuffer(input.substring(0, 60));
              tmp.append("&");
              input = tmp.toString();
          }
          return input;
      }
docs: Used to print out a string for error messages,
  chops is off at 60 chars for historical reasons.