}
private ObjectAdapter createCollectionAdapterAndInferResolveState(final Object pojo, CollectionOid collectionOid) {
Ensure.ensureThatArg(collectionOid, is(not(nullValue())));
final ObjectAdapter collectionAdapter = getObjectAdapterFactory().createAdapter(pojo, collectionOid, this);
collectionAdapter.changeState(collectionOid.isTransient() ? ResolveState.TRANSIENT : ResolveState.GHOST);
return collectionAdapter;
}
private ObjectAdapter createAggregatedAdapter(final Object pojo, AggregatedOid aggregatedOid) {
Ensure.ensureThatArg(aggregatedOid, is(not(nullValue())));