titleProperty.setSource("LEAD");
QueryElementType titleElement = titleProperty
.addNewQueryElement();
titleElement.setName("title");
titleElement.setSource("LEAD");
QueryTextElementType textCriteria = titleElement
.addNewQueryTextElement();
textCriteria.setCompare(TextComparisonType.EXACT);
textCriteria.setValue(WORKFLOW_TEMPLATES_COLLECTION);
QueryComponentType project = parentCollection
.addNewQueryComponent();
project.setAggrType(CatalogAggregationType.PROJECT);
project.setRelation(ContextType.PARENT);
project.setObjectId(projectID);