/* 337 */ Set methodRoles = this.container.getMethodPermissions(ejbMethod, mi.getType());
/* */
/* 339 */ SecurityContext currentSC = SecurityActions.getSecurityContext();
/* 340 */ if (currentSC.getSecurityManagement() == null)
/* 341 */ currentSC.setSecurityManagement(this.securityManagement);
/* 342 */ EJBAuthorizationHelper eah = new EJBAuthorizationHelper(currentSC);
/* 343 */ isAuthorized = eah.authorize(this.ejbName, ejbMethod, mi.getPrincipal(), mi.getType().toInterfaceString(), this.ejbCS, caller, callerRunAsIdentity, methodRoles);
/* */
/* 352 */ String msg = "Denied: caller with subject=" + caller + " and security context post-mapping roles=" + currentSC.getUtil().getRoles();
/* */
/* 355 */ if (!isAuthorized)
/* 356 */ throw new SecurityException(msg);