CLIENT_SECRET,
Lists.newArrayList(SCOPE))
.setDataStoreFactory(storeFactory).build();
// Load the credential.
Credential credential = authorizationFlow.loadCredential(userId);
// Construct a DfaSession.
return new DfaSession.Builder()
.fromFile()
.withUsernameAndOAuth2Credential(userId, credential)