@Override
public void handle(Context context) {
RatpackWebContext webContext = new RatpackWebContext(context);
context.blocking(() -> {
Client<Credentials, UserProfile> client = lookupClient.apply(context, webContext);
Credentials credentials = client.getCredentials(webContext);
return client.getUserProfile(credentials, webContext);
}).onError(e -> {
if (e instanceof RequiresHttpAction) {
webContext.sendResponse((RequiresHttpAction) e);
} else {