userID.setName("login"); //$NON-NLS-1$
userID.setEType(EcorePackage.eINSTANCE.getEString());
userPermission.getEStructuralFeatures().add(userID);
pack.getEClassifiers().add(userPermission);
Role manager = UamFactory.eINSTANCE.createRole();
manager.setId("manager_role"); //$NON-NLS-1$
manager.setName("regional manager"); //$NON-NLS-1$
EcoreUtil.setAnnotation(manager, UamPackage.eNS_URI, "#description", "orders manager"); //$NON-NLS-1$ //$NON-NLS-2$
pack.getEClassifiers().add(manager);
EMFUtil.addPermission(manager, regionalPermission);
Role customer = UamFactory.eINSTANCE.createRole();
customer.setId("customer_role"); //$NON-NLS-1$
customer.setName("customer"); //$NON-NLS-1$
EcoreUtil.setAnnotation(customer, UamPackage.eNS_URI, "#description", "orders customer"); //$NON-NLS-1$ //$NON-NLS-2$
pack.getEClassifiers().add(customer);
userPermission.setPObject(order);
// EMFUtil.addPobject(userPermission, order);
// order.getPermission().add(userPermission);