Here is the way to Customize the Microsoft Graph SDK service client:
For more information :https://learn.microsoft.com/en-us/graph/sdks/customize-client?tabs=java
----------
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".