<BUG>return httpActionAdapter.handle(e.getCode(), context);</BUG><CONTEXT>CommonHelper.assertTrue(client instanceof IndirectClient, "only indirect clients are allowed on the callback url");final Credentials credentials;try {credentials = client.getCredentials(context);} catch (final RequiresHttpAction e) {<extra_id_0>}logger.debug("credentials: {}", credentials);final UserProfile profile = client.getUserProfile(credentials, context);</CONTEXT>
return (Result) config.getHttpActionAdapter().adapt(e.getCode(), context);