private IdentityProviderConfig getConfig() {
   for (IdentityProviderConfig c : application.getProviders()) {
     if (c.getProviderId().equals(provider.getId())) {
       return c;
     }
   }
   return null;
 }
 public URI getBrokerCallbackUrl() {
   return createUri("api/callback/" + application.getKey()).build();
 }
 public String getApplicationKey() {
   return application.getKey();
 }