String wfTempCollectionId = null;
try {
ContextQueryRequestDocument query = ContextQueryRequestDocument.Factory
.newInstance();
ContextQueryRequestType params = query.addNewContextQueryRequest();
QueryObjectType target = params.addNewQueryTarget();
target.setAggrType(CatalogAggregationType.COLLECTION);
ContextQueryType context = params.addNewContextQuery();
QueryComponentType parentCollection = context
.addNewQueryComponent();
parentCollection.setAggrType(CatalogAggregationType.PROJECT);
parentCollection.setRelation(ContextType.PARENT);
parentCollection.setObjectId(projectID);
QueryPropertyType titleProperty = target.addNewQueryProperty();
titleProperty.setName("citation");
titleProperty.setSource("LEAD");
QueryElementType titleElement = titleProperty.addNewQueryElement();
titleElement.setName("title");