}
// Look up the active version for the type of service initiating the
// request, and set the version header if found.
try {
Version requestVersion = service.getProtocolVersion();
if (requestVersion != null) {
setHeader(GDataProtocol.Header.VERSION,
requestVersion.getVersionString());
}
} catch (IllegalStateException iae) {
// Service may not be versioned.
}
}