}
ConsumerContext context = new ConsumerContext(httpConnector, nonceAndTimestamp, endpoints);
String tokenManagerParam = props.getProperty("oauth.consumer.token.manager");
TokenManager tokenManager = tokenManagerParam==null ? new HttpSessionTokenManager() :
(TokenManager)newObjectInstance(tokenManagerParam);
tokenManager.init(props);
return new Consumer(context, tokenManager);