private EntityCollectionModel(final ObjectAdapterMemento parentAdapterMemento, final OneToManyAssociation collection) {
this.type = Type.PARENTED;
this.typeOf = forName(collection.getSpecification());
this.parentObjectAdapterMemento = parentAdapterMemento;
this.collectionMemento = new CollectionMemento(collection);
this.pageSize = pageSize(collection.getFacet(PagedFacet.class), PAGE_SIZE_DEFAULT_FOR_PARENTED);
final SortedByFacet sortedByFacet = collection.getFacet(SortedByFacet.class);
this.sortedBy = sortedByFacet != null?sortedByFacet.value(): null;
}