MinimalLEADMetadata collMetadata = new MinimalLEADMetadata(userID, WORKFLOW_TEMPLATES_COLLECTION,
"Workflow templates for project " + projectId);
collMetadata.setResourceId("Unknown");
CreateCollectionsRequestDocument createColl = CreateCollectionsRequestDocument.Factory.newInstance();
CreateCollectionsRequestType collParams = createColl.addNewCreateCollectionsRequest();
LEADresourceDocument workflowCollResourceDoc = LEADresourceDocument.Factory.parse(collMetadata.toString());
LEADResourceType workflowCollResourceType = workflowCollResourceDoc.getLEADresource();
CollectionType collectionType = collParams.addNewCollectionInfo();
collectionType.setAssignNewResourceID(true);
collectionType.setParentID(projectId);
collectionType.setLEADresource(workflowCollResourceType);