* @param config The Configuration object
*
* @return A ServiceStatementManager based on the environment
*/
static ServiceStatementManager getServiceStatementManager(Configuration config) {
ServiceStatementManager defaultServiceStatementManager = new TransientServiceStatementManager(config);
ServiceStatementManager serviceStatementManager;
try {
serviceStatementManager = (ServiceStatementManager)config.getEntry(CybernodeImpl.getConfigComponent(),
"serviceStatementManager",
ServiceStatementManager.class,
defaultServiceStatementManager,
config);
} catch(ConfigurationException e) {
logger.warn("Exception getting ServiceStatementManager", e);
serviceStatementManager = defaultServiceStatementManager;
}
logger.debug("Using ServiceStatementManager: {}", serviceStatementManager.getClass().getName());
return(serviceStatementManager);
}