}
}
if (elementView == null) {
Content elementContent;
if (field == null) {
elementContent = new CollectionElement(element);
} else {
final ObjectAdapter obj = ((OneToManyField) view.getContent()).getParent();
// ObjectAdapter obj = view.getParent().getContent().getAdapter();
final ObjectAdapter parent = obj;
elementContent = new OneToManyFieldElementImpl(parent, element, field);