Writing your own Collection Finder

The CollectionFinder interface enables you to define a mapping from a collection URI to a set of resources (which can be arbitrary XDM values: they are not restricted to be XML documents).

The details differ between Java and .NET: