Asana Events autosync

I want check events and change sync parameter in Asana Api in java. By Asana docs. We have:

Client client = Client.accessToken("PERSONAL_ACCESS_TOKEN");

List<JsonElement> result = client.events.getEvents(sync, resource)
    .option("pretty", true)
    .execute();

In java I have error and don’t see new “sync” parameter:

com.asana.errors.InvalidTokenError: Sync token invalid or too old (Sync token invalid or too old. If you are attempting to keep resources in sync, you must fetch the full dataset for this query now and use the new sync token for the next sync.)

In Asana API explorer https://developers.asana.com/explorerslabs I see this: GET /events?resource=1164252

{
  "errors": [
    {
      "message": "Sync token invalid or too old. If you are attempting to keep resources in sync, you must fetch the full dataset for this query now and use the new sync token for the next sync."
    }
  ],
  "sync": "c66c5705fb8286666f944f8e314a82c6:0"
}

So in Java I take error message, but not a parameter “sync”. If use try / catch (catch (IOException ex)) system, then I can see “sync” , that I need Picture of ex with breakpoint, but how to get this info from Exception object (it’s not main message from exception)?

Maybe somebody work with Asana library and know this problem (how to copy sync parameter first time and later from server response)?