private void write(BufferedWriter out)
  {
    StringBuffer sb = new StringBuffer();
    
    sb.append("db." + JSONWriter.COLLECTION_NAME + ".insert({");
    sb.append("ministry: \"" + _ministry + "\"");
    sb.append(", party: \"" + _party + "\"");
    sb.append(", start: {");
    sb.append("date: \"" + String.format("%04d", Integer.parseInt(_startYear)) + String.format("%02d", Integer.parseInt(_startMonth)) + String.format("%02d", Integer.parseInt(_startDay)) + "\"");
    sb.append(", year: \"" + _startYear + "\"");
    sb.append(", month: \"" + _startMonth + "\"");
    sb.append(", day: \"" + _startDay + "\"");
    sb.append("}");
    sb.append(", end: {");
    sb.append("date: \"" + String.format("%04d", Integer.parseInt(_endYear)) + String.format("%02d", Integer.parseInt(_endMonth)) + String.format("%02d", Integer.parseInt(_endDay)) + "\"");
    sb.append(", year: \"" + _endYear + "\"");
    sb.append(", month: \"" + _endMonth + "\"");
    sb.append(", day: \"" + _endDay + "\"");
    sb.append("}");
    sb.append("});");
    
    try {
      out.write(sb.toString() + "\n");
    } catch (IOException e) {
      e.printStackTrace();
    }
  }