import org.eclipse.emf.index.EPackageDescriptor;
import org.eclipse.emf.index.IIndexStore;
public class EPackageRegistryIndexFeeder {
public static void feedEPackagesFromRegistry(IIndexStore indexStore) {
for (boolean hasChanged = true; hasChanged;) {
<BUG>for (String nsURI : EPackage.Registry.INSTANCE.keySet()) {
hasChanged = false;</BUG>
EPackageDescriptor storedEPackages = indexStore.ePackageDAO().createQuery().nsURI(nsURI)
.executeSingleResult();
if (storedEPackages == null) {

import org.eclipse.emf.index.EPackageDescriptor;
import org.eclipse.emf.index.IIndexStore;
public class EPackageRegistryIndexFeeder {
public static void feedEPackagesFromRegistry(IIndexStore indexStore) {
for (boolean hasChanged = true; hasChanged;) {
List<String> nsURIs = new ArrayList<String>(EPackage.Registry.INSTANCE.keySet());
for (String nsURI : nsURIs) {
hasChanged = false;
EPackageDescriptor storedEPackages = indexStore.ePackageDAO().createQuery().nsURI(nsURI)
.executeSingleResult();
if (storedEPackages == null) {
