I show how to retrieve the token and timestamp in the code I posted above.
Look under section “How I captured the 2 values to insert into my collection”.
Then I stored the values in a collection using the data type described under section “How I defined in my cdrConfig.class”. I named my storage collection “cdrConfig”, you name yours whatever name fits your environment.