else
collection.insert(dbObjects, writeConcern);
URI baseURI = resource.getURI().trimSegments(1);
InternalEObject[] eObjects = contents.toArray(new InternalEObject[contents.size()]);
EReferenceCollection eCollection = EmodelingFactory.eINSTANCE.createEReferenceCollection();
InternalEList<EObject> values = (InternalEList<EObject>) eCollection.getValues();
for (int i = 0; i < dbObjects.size(); i++)
{
InternalEObject internalEObject = eObjects[i];
internalEObject.eSetProxyURI(baseURI.appendSegment(dbObjects.get(i).get(Keywords.ID_KEY).toString()).appendFragment("/"));