}
private Package getPackage(String name, ModelAccessFacade model) {
Iterator it = model.getModelElements().iterator();
while (it.hasNext()) {
ModelElementFacade mef = (ModelElementFacade) it.next();
if (mef instanceof PackageFacade) {
PackageFacade pf = (PackageFacade) mef;
Package p = (Package) ((PackageFacadeLogicImpl) pf)
.getMetaObject();
if (p.getName() != null && p.getName().equals(name)) {