You can look on the API called "GroupWise Tokens". It allows to control the Groupwise Client from your program. And it is definitely has Refresh() token