if (authHeader == null) {
// invoke a call to google authentication service
RestClient client = new RestClient();
org.apache.wink.client.Resource authResource =
client.resource("https://www.google.com/accounts/ClientLogin");
MultivaluedMapImpl<String, String> params = new MultivaluedMapImpl<String, String>();
params.putSingle("accountType", "HOSTED_OR_GOOGLE");
params.putSingle("Email", email);
params.putSingle("Passwd", password);
params.putSingle("service", "writely");