On 06.05.2013, at 15:59, Bertrand Delacretaz <bdelacre...@apache.org> wrote:
> Without checking if that's doable, I'd be less surprised with > > properties.put("sling:resourceType", ResourceCollection.RESOURCE_TYPE); > final Resource r = resourceResolver.create(parent, name, properties); > final ResourceCollection c = r.adaptTo(ResourceCollection.class); I think that is a great idea! AFAIK we already ensure that the ResourceCollectionImpl can work without empty content (which is a good thing (tm)). This means we can remove both ResourceCollection and ResourceCollectionImpl, unless I am missing something. Cheers, Alex