*/
private static ContextManager getInitializedContextManager( final Context initParameters,
Logger logger ) throws Exception
{
// The context manager will use an internal coonsole logger if logger is null.
final ContextManager contextManager = new ContextManager( initParameters, logger );
contextManager.initialize();
return contextManager;
}