code: public boolean isUserInRole(String role)
      {
          if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
              checkRequestObjectInUse();
          }
          boolean userInRole;
  
          IWebAppSecurityCollaborator webAppSec = CollaboratorHelperImpl.getCurrentSecurityCollaborator();
          if (webAppSec != null) {
              userInRole = webAppSec.isUserInRole(role, this);
          } else {
              // No IWebAppSecurityCollaborator means no security, so not authenticated 
              userInRole = false;
          }
  
          if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {  //306998.15
              logger.logp(Level.FINE, CLASS_NAME,"isUserInRole", " role --> " + role + " result --> " + String.valueOf(userInRole));
          }
          return userInRole;
      }
docs: {@inheritDoc} Returns true if the user is authenticated and is in the
  specified role. False otherwise.
  This logic is delegatd to the registered IWebAppSecurityCollaborator.