code: private void addTaskPart(List<DataSource> bodyPartContents, URI taskURI,
              int contentId) throws JAXBException {
          for (EntityBatchOperation entityBatchOperation : entityBatchOperations) {
              DataSource bodyPartContent = null;
              if (entityBatchOperation instanceof Task.CreateBatchOperation) {
                  Task.CreateBatchOperation createTaskOperation = (Task.CreateBatchOperation) entityBatchOperation;
                  bodyPartContent = createBatchCreateEntityPart(
                          createTaskOperation.getVerb(), "Tasks",
                          createTaskOperation.getEntryType(), taskURI, contentId);
                  contentId++;
              }
  
              if (bodyPartContent != null) {
                  bodyPartContents.add(bodyPartContent);
              }
          }
      }
docs: Adds the task part.
  
  @param bodyPartContents
  the body part contents
  @param taskURI
  the task uri
  @param contentId
  the content id
  @throws JAXBException
  the jAXB exception