/**
  * Returns annotations for actions.
  *
  * @param MethodReflection $method
  * @return AnnotationCollection
  */
 public function getMethodAnnotations(MethodReflection $method)
 {
     $annotations = $method->getAnnotations($this->annotationManager);
     if (!$annotations) {
         $annotations = new AnnotationCollection();
     }
     return $annotations;
 }