LOGGER.debug(format("Creating request to '%s'", absoluteUrl));
final WS.WSRequestHolder request = WS.url(absoluteUrl)
.setTimeout(DEFAULT_TIMEOUT.intValue())
.setFollowRedirects(false) // because we need to sign again in those cases.
.sign(new OAuthSignatureCalculator());
return user.fold(
Suppliers.ofInstance(request),
new Function<String, WS.WSRequestHolder>()
{