final ObjectAdapter[] elements = new ObjectAdapter[ids.length];
for (int i = 0; i < ids.length; i++) {
elements[i] = loaded.get(ids[i]);
}
final ObjectAdapter collection = association.get(object);
final CollectionFacet facet = CollectionFacetUtils.getCollectionFacetFromSpec(collection);
facet.init(collection, elements);
} else if (association.getSpecification().isParseable()) {
data = data.replaceAll("\\n", "\n");
final ParseableFacet facet = association.getSpecification().getFacet(ParseableFacet.class);
final ObjectAdapter value = facet.parseTextEntry(null, data, null);
((OneToOneAssociation) association).initAssociation(object, value);
} else if (association.isOneToOneAssociation()) {
final ObjectAdapter value = loaded.get(data);
((OneToOneAssociation) association).initAssociation(object, value);
}