code: private static void setScope(TokenRequest tokenRequest, Jwt jwt) {
          if(jwt.getKey() != null && !jwt.getKey().getScopes().isEmpty()) {
              tokenRequest.setScope(new ArrayList<String>() {{ addAll(jwt.getKey().getScopes()); }});
          }
      }
docs: if scopes in jwt.getKey() has value, use this scope
  otherwise remains the default scope value which already inside tokenRequest when create ClientCredentialsRequest;
  @param tokenRequest
  @param jwt