GenBaseImpl genPackage = (GenBaseImpl)iter.next(); genPackage.setImportManager(importManager);
GenPackage genPackage = (GenPackage)iter.next(); genPackage.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    }  }