private void checkPreconditions(OAuthRequest request) {
Preconditions.checkNotNull(request, "Cannot extract base string from null object");
if (request.getOauthParameters() == null || request.getOauthParameters().size() <= 0) {
throw new OAuthParametersMissingException(request);
}
}