}
return serializeQueryField(simple.getValue(), serializer,
serializerProvider, key);
}
} else if (condition instanceof CollectionQueryCondition) {
CollectionQueryCondition coll = (CollectionQueryCondition) condition;
if (!key.startsWith("$")) {
serializer = findQuerySerializer(coll.targetIsCollection(),
key, serializerProvider, serializer);
}
List<Object> serializedConditions = new ArrayList<Object>();
for (QueryCondition item : coll.getValues()) {
serializedConditions.add(serializeQueryCondition(
serializerProvider, serializer, "$", item));
}
return serializedConditions;
} else {