ERIndex fileStore = ERIndex.indexNamed("AssetInFileStore");
EOQualifier tagQualifier = new EOKeyValueQualifier("tags.name", EOQualifier.QualifierOperatorEqual, tag.name());
EOQualifier groupQualifier = new EOKeyValueQualifier("assetGroup.name", EOQualifier.QualifierOperatorEqual, tag.name());
log.info("fileStore: " + fileStore.findGlobalIDs(tagQualifier).count());
log.info("eofStore: " + eofStore.findGlobalIDs(tagQualifier).count());
log.info("fileStore: " + fileStore.findGlobalIDs(groupQualifier).count());
log.info("eofStore: " + eofStore.findGlobalIDs(groupQualifier).count());
String newName = "cooltest";
tagQualifier = new EOKeyValueQualifier("tags.name", com.webobjects.eocontrol.EOQualifier.QualifierOperatorEqual, newName);
tag.setName(newName + " " + System.currentTimeMillis());