GenBaseImpl genPackage = (GenBaseImpl)iter.next(); genPackage.setImportManager(importManager);
GenPackage genPackage = (GenPackage)iter.next(); genPackage.getGenModel().setImportManager(importManager); }    if (ecoreGenPackage != null && ecoreGenPackage.getGenModel().getImportManager() != importManager) { ecoreGenPackage.getGenModel().setImportManager(importManager); } if (xmlTypeGenPackage != null && xmlTypeGenPackage.getGenModel().getImportManager() != importManager) { xmlTypeGenPackage.getGenModel().setImportManager(importManager); } if (xmlNamespaceGenPackage != null && xmlNamespaceGenPackage.getGenModel().getImportManager() != importManager) { xmlNamespaceGenPackage.getGenModel().setImportManager(importManager);
  protected void setImportManager(ImportManager importManager)  {    this.importManager = importManager;    for (Iterator iter = getUsedGenPackages().iterator(); iter.hasNext(); )    {      GenBaseImpl genPackage = (GenBaseImpl)iter.next();      genPackage.setImportManager(importManager); //FB TBD need to rethink the GenModel role    }    for (Iterator iter = getStaticGenPackages().iterator(); iter.hasNext(); )    {      GenBaseImpl genPackage = (GenBaseImpl)iter.next();      genPackage.setImportManager(importManager); //FB TBD need to rethink the GenModel role    }  }