fixing the controller spec generator to not emit deprecation warnings
Merge pull request #862 from pungoyal/fix_any_instance_deprecation_warning

fixing the controller spec generator to not emit deprecation warnings