code: @Override
      public boolean isCallerInRole(String role) {
  
          Subject callerSubject = getCallerSubject();
          AuthorizationService authService = SecurityContextHelper.getAuthorizationService();
          if (authService != null) {
              String appName = getApplicationName();
              List<String> roles = new ArrayList<String>();
              roles.add(role);
  
              return authService.isAuthorized(appName, roles, callerSubject);
          }
          return false;
      }
docs: /*
  (non-Javadoc)
  
  @see javax.security.enterprise.SecurityContext#isCallerInRole(java.lang.String)