This toString() function throws a null pointer exception when called before getOAuth2Token().  IMHO you should strongly considering checking for token==null before calling token.toString()