getNewModels
java.util.Collection<ModelWrapper> getNewModels(ModelWrapper toProcess,
InterceptorContextSnapshot ctxSnapshot,
WrapperRegistry wrapperRegistry)
Collects all newly added models basing on the given collection of models and returns them. E.g. for given
CustomerModel, corresponding AddressModel(s) can be found (if recognized as newly added).
- Parameters:
toProcess - Model to process looking for newly created child items
wrapperRegistry - Existing model wrappers, as a base to check for already registered models.
ctxSnapshot - Interceptor context snapshot
- Returns:
- collection of newly added models.