final String gadgetServiceName = (String) i.next();
final JSONObject settings = bindings.getJSONObject(gadgetServiceName);
final String clientName = settings.getString(CLIENT_NAME);
final boolean allowOverride = settings
.getBoolean(ALLOW_MODULE_OVERRIDE);
final OAuth2GadgetBinding gadgetBinding = new OAuth2GadgetBinding(null,
gadgetServiceName, clientName, allowOverride);
ret.put(gadgetBinding.getGadgetServiceName(), gadgetBinding);
}
} catch (final JSONException e) {
LOG.logp(Level.WARNING, CLAZZ, method, "Exception while loading gadget bindings.", e);