int foundValidStyles = 0;
boolean lackAuthInfo = false;
OAuthProblemException ex = null;
String lackAuthReason = "OAuth parameters were not found";
for (TokenType tokenType : tokenTypes) {
ResourceServer resourceServer=instantiateResourceServer(tokenType);
for (ParameterStyle style : parameterStyles) {
try {
OAuthValidator validator = resourceServer.instantiateValidator(style);
validator.validateContentType(request);
validator.validateMethod(request);
validator.validateRequiredParameters(request);
usedParameterStyle = style;