class TokenValidationService {

    public BearerTokenTO validate(String bearerToken) {
        try {
            authInterceptor.setAccessToken(bearerToken);
            return ledgersUserMgmt.validate(bearerToken).getBody();
        } catch (FeignException e) {
            log.error("Token validation is failed");
        } finally {
            authInterceptor.setAccessToken(null);
        }
        return null;
    }

}