String result = getModelDirectory(); if (!getGenPackages().isEmpty()) { GenPackage genPackage = (GenPackage)getGenPackages().get(0); while (genPackage.getGenClassifiers().isEmpty() && !genPackage.getNestedGenPackages().isEmpty()) { genPackage = (GenPackage)genPackage.getNestedGenPackages().get(0); } result = genPackage.getInterfacePackageName(); } return result;
GenPackage genPackage = getMainGenPackage(); return genPackage != null ? genPackage.getInterfacePackageName() : getModelDirectory();
  protected String getMainPackage()  {    String result = getModelDirectory();    if (!getGenPackages().isEmpty())    {      GenPackage genPackage = (GenPackage)getGenPackages().get(0);      while (genPackage.getGenClassifiers().isEmpty() && !genPackage.getNestedGenPackages().isEmpty())      {        genPackage = (GenPackage)genPackage.getNestedGenPackages().get(0);      }      result = genPackage.getInterfacePackageName();    }    return result;  }