public function checkMethod()
{
if ($this->getReflection()->getMethod() && !in_array(Request::getMethod(), $this->getReflection()->getMethod())) {
Response::setHeader('Allow', join(',', $this->getReflection()->getMethod()));
throw new NotAllowedException();
}
}