private boolean hasJoinRequest(Site site) {
   List<JoinSiteRequestImpl> requestedSites = getJoinSiteRequests();
   for (JoinSiteRequestImpl joinSiteRequest : requestedSites) {
     if (site.getIdentifier().equals(joinSiteRequest.getSiteShortName())) {
       return true;
     }
   }
   return false;
 }
 /** {@inheritDoc} */
 protected String getCancelJoinSiteRequestUrl(JoinSiteRequestImpl joinSiteRequest) {
   return OnPremiseUrlRegistry.getCancelJoinSiteRequestUrl(
       session, joinSiteRequest.getSiteShortName(), joinSiteRequest.getIdentifier());
 }