add method getPackagesByModel in class ModelPackage