public static ActionFactory createActionFactory(final Configuration config)
{
final String factoryClass = config.getConfigProperty(ACTION_FACTORY_CONFIG_KEY);
final Object maybeFactory = ObjectUtilities.loadAndInstantiate
(factoryClass, PreviewPane.class, ActionFactory.class);
final ActionFactory actionFactory;
if (maybeFactory != null)
{
actionFactory = (ActionFactory) maybeFactory;
}
else