code: public List<Response> bulk(List<?> objects, boolean allOrNothing) {
          assertNotEmpty(objects, "objects");
          InputStream responseStream = null;
          HttpConnection connection;
          try {
              final JsonObject jsonObject = new JsonObject();
              if(allOrNothing) {
                  jsonObject.addProperty("all_or_nothing", true);
              }
              final URI uri = new DatabaseURIHelper(dbUri).bulkDocsUri();
              jsonObject.add("docs", getGson().toJsonTree(objects));
              connection = Http.POST(uri, "application/json");
              if (jsonObject.toString().length() != 0) {
                  connection.setRequestBody(jsonObject.toString());
              }
              couchDbClient.execute(connection);
              responseStream = connection.responseAsInputStream();
              List<Response> bulkResponses = getResponseList(responseStream, getGson(),
                      DeserializationTypes.LC_RESPONSES);
              for(Response response : bulkResponses) {
                  response.setStatusCode(connection.getConnection().getResponseCode());
              }
              return bulkResponses;
          }
          catch (IOException e) {
              throw new CouchDbException("Error retrieving response input stream.", e);
          } finally {
              close(responseStream);
          }
      }
docs: Performs a Bulk Documents insert request.
  
  @param objects      The {@link List} of objects.
  @param allOrNothing Indicates whether the request has <tt>all-or-nothing</tt> semantics.
  @return {@code List<Response>} Containing the resulted entries.