for (Entry<Object, Set<OIdentifiable>> v : subSet.entrySet()) {
for (OIdentifiable id : v.getValue()) {
final ODocument document = new ODocument();
document.field("key", v.getKey());
document.field("rid", id.getIdentity());
document.unsetDirty();
result.add(document);
}
}
}