@Override
public Content createRootContent(final ObjectAdapter object) {
Assert.assertNotNull(object);
final ObjectSpecification objectSpec = object.getSpecification();
if (objectSpec.isParentedOrFreeCollection()) {
return new RootCollection(object);
}
if (objectSpec.isNotCollection()) {
return new RootObject(object);
}