public void addUploadedFileItem(DataHandler dataHandler, String fileName, String fileType) {
   UploadedFileItem uploadedFileItem = new UploadedFileItem();
   uploadedFileItem.setDataHandler(dataHandler);
   uploadedFileItem.setFileName(fileName);
   uploadedFileItem.setFileType(fileType);
   uploadServiceTypeList.add(uploadedFileItem);
 }
  private org.wso2.carbon.humantask.stub.upload.types.UploadedFileItem[] getHTUploadedFileItem(
      DataHandler dataHandler, String fileName, String fileType) {

    org.wso2.carbon.humantask.stub.upload.types.UploadedFileItem[] uploadedFileItems =
        new org.wso2.carbon.humantask.stub.upload.types.UploadedFileItem[1];
    org.wso2.carbon.humantask.stub.upload.types.UploadedFileItem uploadedFileItem =
        new org.wso2.carbon.humantask.stub.upload.types.UploadedFileItem();
    uploadedFileItem.setDataHandler(dataHandler);
    uploadedFileItem.setFileName(fileName);
    uploadedFileItem.setFileType(fileType);
    uploadedFileItems[0] = uploadedFileItem;
    return uploadedFileItems;
  }