public void updateWorkflowNodeType(WorkflowInstanceNode node,
WorkflowNodeType type) {
webResource = getProvenanceRegistryBaseResource().path(
ResourcePathConstants.ProvenanceResourcePathConstants.UPDATE_WORKFLOWNODETYPE);
MultivaluedMap formParams = new MultivaluedMapImpl();
formParams.add("workflowInstanceId", node.getWorkflowInstance().getWorkflowExecutionId());
formParams.add("nodeId", node.getNodeId());
formParams.add("nodeType", type.getNodeType().name());
builder = BasicAuthHeaderUtil.getBuilder(
webResource, null, userName, null, cookie, gateway);
ClientResponse response = builder.accept(
MediaType.TEXT_PLAIN).post(ClientResponse.class, formParams);