protected function convertAnnotationObj($reflection)
    {
        $annotations = (array) $reflection->getAnnotations();
        $result = array();

        foreach ($annotations as $annotation) {
            if (! array_key_exists($annotation['method'], $result)) {
                $result[$annotation['method']] = array();
            }

            foreach ($annotation['args'] as $key => $value) {
                if (is_numeric($key)) {
                    $result[$annotation['method']][] = $value;
                } else {
                    $result[$annotation['method']][$key] = $value;
                }
            }
        }

        return $result;
    }