}
}
protected OpenConextOAuthClient createOpenConextOAuthClient(Properties properties) throws ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException {
OpenConextOAuthClient apiClient = (OpenConextOAuthClient) getClass().getClassLoader().loadClass(properties.getProperty("openConextApiClient")).newInstance();
BeanUtils.setProperty(apiClient, "callbackUrl", properties.getProperty("api-callbackuri"));
BeanUtils.setProperty(apiClient, "consumerSecret", properties.getProperty("api-consumersecret"));
BeanUtils.setProperty(apiClient, "consumerKey", properties.getProperty("api-consumerkey"));
BeanUtils.setProperty(apiClient, "endpointBaseUrl", properties.getProperty("api-baseurl"));
return apiClient;