Bonitasoft token issue

In postman while using interceptor plugin the token provided by the cookie on a rest call is working fine. But when we are implementing same things in java the generated token is not working properly, can someone help this issues.

Can you share your Java code to reproduce the issue? Maybe a stacktrace of your application? Thanks.