code: @Override
      public boolean isCallerInRole(EJBComponentMetaData cmd, EJBRequestData request, SecurityCookieImpl preInvokeData, String roleName, String roleLink) {
          if (request == null) {
  //            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
  //                Tr.info(tc, "REQUEST_IS_NULL", "Request value passed into isCallerInRole is null. Returning false");
  //            }
              return false;
          }
          Subject callerSubject = subjectManager.getCallerSubject();
          if (ejbSecConfig.getUseUnauthenticatedForExpiredCredentials()) {
              //create unauth subject if caller subjcect is expired
              CredentialsService credService = credServiceRef.getService();
              if (credService != null && !credService.isSubjectValid(callerSubject)) {
                  callerSubject = unauthenticatedSubjectServiceRef.getService().getUnauthenticatedSubject();
              }
          }
  
          return eah.isCallerInRole(cmd, request, roleName, roleLink, callerSubject);
  
      }
docs: {@inheritDoc}