code: public boolean hasAccountRole(final String role,UserIdentityContext userIdentityContext) {
          if (userIdentityContext.getEffectiveAccount() != null) {
              return userIdentityContext.getEffectiveAccountRoles().contains(role);
          }
          return false;
      }
docs: Checks is the effective account has the specified role. Only role values contained in the Restcomm Account
  are take into account.
  
  @param role
  @return true if the role exists in the Account. Otherwise it returns false.