DefaultVersion version2 = new DefaultVersion("version 2");
StreamBufferFactory streamBufferFactory =
new DefaultStreamBufferFactory();
DefaultResourceIdentifier resourceRecogniser =
new DefaultResourceIdentifier();
DefaultIdentificationFactory typeFactory =
new DefaultIdentificationFactory();
DefaultTypeIdentifier type = new DefaultTypeIdentifier(typeFactory,
"type");
type.setPathRecogniser(new RegexpPathRecogniser(filename));
type.addContentIdentifier(
new DefaultContentIdentifier(version1,