//locking
String lockId = null;
if (request.isLockRequest()) {
LockFeatureRequest lockRequest = request.createLockRequest();
lockRequest.setExpiry(request.getExpiry());
lockRequest.setHandle(request.getHandle());
lockRequest.setLockActionAll();
for (int i = 0; i < queries.size(); i++) {
Query query = queries.get(i);
Lock lock = lockRequest.createLock();
lock.setFilter(query.getFilter());
lock.setHandle(query.getHandle());
//TODO: joins?
List<QName> typeNames = query.getTypeNames();
lock.setTypeName(typeNames.get(0));
lockRequest.addLock(lock);
}
LockFeature lockFeature = new LockFeature(wfs, catalog);
lockFeature.setFilterFactory(filterFactory);