Is it possible for you to change the `setCredential(GoogleAccountCredential credential)`'s implementation to avoid code duplications. I think it'd be safe to say:

~~~java
public void setCredential(GoogleAccountCredential credential) {
  setCredential(credential, null);
}
~~~