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 ) ; } } }
Adds the task part .