public void addWorkflowInstance(String experimentId,
String workflowInstanceId,
String templateName) {
webResource = getProvenanceRegistryBaseResource().path(
ResourcePathConstants.ProvenanceResourcePathConstants.ADD_WORKFLOWINSTANCE);
MultivaluedMap formParams = new MultivaluedMapImpl();
formParams.add("experimentId", experimentId);
formParams.add("workflowInstanceId", workflowInstanceId);
formParams.add("templateName", templateName);
builder = BasicAuthHeaderUtil.getBuilder(
webResource, null, userName, null, cookie, gateway);
ClientResponse response = builder.accept(
MediaType.TEXT_PLAIN).post(ClientResponse.class, formParams);