code: private static void maybeQuote(StringBuilder buff, String value) {
          // PK48169 - handle a null value as well as an empty one
          if (null == value || 0 == value.length()) {
              buff.append("\"\"");
          } else if (needsQuote(value)) {
              buff.append('"');
              buff.append(value);
              buff.append('"');
          } else {
              buff.append(value);
          }
      }
docs: Append the input value string to the given buffer, wrapping it with
  quotes if need be.
  
  @param buff
  @param value