public void updateWorkflowInstanceStatus(WorkflowExecutionStatus workflowInstanceStatus) {
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String statusUpdateDate = dateFormat.format(workflowInstanceStatus.getStatusUpdateTime());
webResource = getProvenanceRegistryBaseResource().path(
ResourcePathConstants.ProvenanceResourcePathConstants.UPDATE_WORKFLOWINSTANCESTATUS);
MultivaluedMap formParams = new MultivaluedMapImpl();
formParams.add("workflowInstanceId",
workflowInstanceStatus.getWorkflowInstance().getWorkflowExecutionId());
formParams.add("executionStatus",
workflowInstanceStatus.getExecutionStatus().name());
formParams.add("statusUpdateTime",
statusUpdateDate);
builder = BasicAuthHeaderUtil.getBuilder(
webResource, null, userName, null, cookie, gateway);
ClientResponse response = builder.accept(