// Create a "Workflow Templates" collection for this project
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();