Removed the type check since we know it will be a RestController.

Added the @var for IDE friendliness.
php 5.3 compatibility