ClientConfig: How to retrieve value inside a processor

$path = $this->modx->getOption('clientconfig.core_path', null, $this->modx->getOption('core_path') . 'components/clientconfig/');
$path .= 'model/clientconfig/';
$clientConfig = $this->modx->getService('clientconfig','ClientConfig', $path);
if ($clientConfig instanceof \ClientConfig) {
	$c = $this->modx->newQuery('cgSetting', ['key' => 'my_setting']);
	$c->innerJoin('cgContextValue', 'ContextValues');
	$c->select($this->modx->getSelectColumns('cgContextValue', 'ContextValues', '', array('value')));
	$c->where(['ContextValues.context' => 'my_context_key']);

	$context_setting = $this->modx->getObject('cgSetting', $c);
	if ($context_setting) {
		$value = $context_setting->get('value');
	}          
}