private function createResponsesForRoute($annotations)
    {
        $responses = array();

        foreach ($annotations as $annotation) {
            if ($annotation instanceof SwaggerResult) {
                /* @var SwaggerResult $annotation */
                $response = array(
                    "description" => $annotation->description
                );
                if($annotation->schema !== null) {
                    $schema = $this->processSchemaType($annotation);
                    $response['schema'] = $schema;
                }
                $responses[$annotation->status] = $response;
            }
        }
        return $responses;
    }