{
PolicyConfigurationFactory pcf = PolicyConfigurationFactory.getPolicyConfigurationFactory();
PolicyConfiguration pc = pcf.getPolicyConfiguration("context-a", true);
EJBMethodPermission someEJB = new EJBMethodPermission("someEJB", null);
pc.addToRole("callerX", someEJB);
pc.commit();
log.debug("EJBMethodPermission.CS: "+EJBMethodPermission.class.getProtectionDomain());
final EJBMethodPermission methodX = new EJBMethodPermission("someEJB", "methodX");
final Subject caller = new Subject();
caller.getPrincipals().add(new SimplePrincipal("callerX"));