clients.put(connectionsServiceName, createConnectionsClient(fieldMap));
clients.put(googleServiceName, createGoogleClient(fieldMap));
}
private DominoOAuth2Client createConnectionsClient(Map<String, String> fieldMap) {
DominoOAuth2Client client = new ConnectionsOAuth2Client(StringUtils.trim(fieldMap.get(SbtConstants.CON_OA2_AUTHORIZATIONURL)),
StringUtils.trim(fieldMap.get(SbtConstants.CON_OA2_ACCESSTOKENURL)),
StringUtils.trim(fieldMap.get(SbtConstants.CON_GADGET_OA2_CONSUMERKEY)),
StringUtils.trim(fieldMap.get(SbtConstants.CON_GADGET_OA2_CONSUMERSECRET)));
return client;
}