private function applyCallbacks($value, $options, core_kernel_classes_Property $targetProperty)
    {
        if (isset($options['callbacks'])) {
            foreach (array('*', $targetProperty->getUri()) as $key) {
                if (isset($options['callbacks'][$key]) && is_array($options['callbacks'][$key])) {
                    foreach ($options['callbacks'][$key] as $callback) {
                        if (is_callable($callback)) {
                            $value = call_user_func($callback, $value);
                        }
                    }
                }
            }
        }

        return $value;
    }