throw new RuntimeException("Data object passed was NULL.");
if (dataObj.getId() == null)
throw new RuntimeException("Data object's ID was NULL.");
DataConsumedDocument activity = DataConsumedDocument.Factory.newInstance();
DataProductNotificationType activityType = activity.addNewDataConsumed();
// set the data product to the consumed data
DataProductType dataProduct = activityType.addNewDataProduct();
// set data ID and size
dataProduct.setId(dataObj.getId().toString());
dataProduct.setSizeInBytes(dataObj.getSizeInBytes());
// set data URLs
List<URI> locations = dataObj.getLocations();