SourceHandle sh = new SourceHandle(); sh.set(ds); sh.setFormat(Format.XML);
SourceHandle sh = new SourceHandle(); sh.set(ds); sh.setFormat(Format.XML);
SourceHandle sh = new SourceHandle(); sh.set(ds); sh.setFormat(Format.XML); writeset.add("/generic/foo.xml", new JacksonHandle().with(constructJSONCollectionMetadata("http://Json-Uri-generic-collections/")), sh); // This
SourceHandle sh = new SourceHandle(); sh.set(ds); sh.setFormat(Format.XML); DocumentMetadataHandle mh2 = new DocumentMetadataHandle(); writeset.add("/generic/foo.xml", mh2.withCollections("genericCollection"), sh); // This