add method getPackageByModel in class ModelPackage